public ButtonBase CreateButtonBase(string type, string name) { IntPtr cPtr = CeguiBindingsPINVOKE.WindowManager_CreateButtonBase(swigCPtr, new CeguiDotNet.String(type).HandleRef, new CeguiDotNet.String(name).HandleRef); ButtonBase ret = (cPtr == IntPtr.Zero) ? null : new ButtonBase(cPtr, false); if (CeguiBindingsPINVOKE.SWIGPendingException.Pending) { throw CeguiBindingsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }