public void Append(string text) { IntPtr ptr = MarshalHelper.StringToUTF8(text); uiRadioButtonsAppend(handle, ptr); Marshal.FreeHGlobal(ptr); }
public void Append(string text) { IntPtr ptr = MarshalHelper.StringToUTF8(text); uiMultilineEntryAppend(handle, ptr); Marshal.FreeHGlobal(ptr); }
public void Append(string text) { IntPtr ptr = MarshalHelper.StringToUTF8(text); uiComboboxAppend(handle, ptr); Marshal.FreeHGlobal(ptr); }
private static IntPtr CreateWindow(string title, int width, int height, bool hasMenuBar) { IntPtr ptr = MarshalHelper.StringToUTF8(title); IntPtr handle = uiNewWindow(ptr, width, height, hasMenuBar == true ? 1 : 0); Marshal.FreeHGlobal(ptr); return(handle); }
private static IntPtr CreateGroup(string title) { IntPtr ptr = MarshalHelper.StringToUTF8(title); IntPtr handle = uiNewGroup(ptr); Marshal.FreeHGlobal(ptr); return(handle); }
private static IntPtr CreateButton(string text) { IntPtr ptr = MarshalHelper.StringToUTF8(text); IntPtr handle = uiNewButton(ptr); Marshal.FreeHGlobal(ptr); return(handle); }
public void InsertAt(string name, UInt64 before, UIControl c) { IntPtr ptr = MarshalHelper.StringToUTF8(name); uiTabInsertAt(handle, ptr, before, c.handle); Marshal.FreeHGlobal(ptr); children.Insert((int)before, c); }
public void Append(string name, UIControl c) { IntPtr ptr = MarshalHelper.StringToUTF8(name); uiTabAppend(handle, ptr, c.handle); Marshal.FreeHGlobal(ptr); children.Add(c); }
public UIMenuItem AppendCheckItem(string name) { IntPtr namePtr = MarshalHelper.StringToUTF8(name); IntPtr ptr = uiMenuAppendCheckItem(handle, namePtr); Marshal.FreeHGlobal(namePtr); UIMenuItem item = new UIMenuItem(ptr); items.Add(item); return(item); }
public void MessageBox(string title, string description, bool error = false) { IntPtr titlePtr = MarshalHelper.StringToUTF8(title); IntPtr descriptionPtr = MarshalHelper.StringToUTF8(description); if (error) { uiMsgBoxError(handle, titlePtr, descriptionPtr); } else { uiMsgBox(handle, titlePtr, descriptionPtr); } Marshal.FreeHGlobal(titlePtr); Marshal.FreeHGlobal(descriptionPtr); }