public GUISpinBox AddSpinBox(string text, Rect rectangle, bool border, GUIElement parent, int id) { return (GUISpinBox)NativeElement.GetObject(GuiEnv_AddSpinBox(_raw, text, rectangle.ToUnmanaged(), border, GetPtr(parent), id), typeof(GUISpinBox)); }
public GUIColorSelectDialog AddColorSelectDialog(string title, bool modal, GUIElement parent, int id) { return (GUIColorSelectDialog)NativeElement.GetObject(GuiEnv_AddColorSelectDialog(_raw, title, modal, GetPtr(parent), id), typeof(GUIColorSelectDialog)); }
private void RemoveFromElements(GUIElement node) { if (NativeElement.Elements.ContainsKey(node.Raw)) { NativeElement.Elements.Remove(node.Raw); } else { //throw new Exception("Element was stale!!!!"); } foreach (GUIElement cnode in node.Children) { System.Diagnostics.Debug.WriteLine("Deleting child nodes for GUI: " + node.Raw + " Elements remaining: " + NativeElement.Elements.Count); RemoveFromElements(cnode); } }
public virtual void AddChild(GUIElement child) { GuiElem_AddChild(_raw, child.Raw); }
public GUIEditBox AddEditBoxW(string text, Rect rectangle, bool border, GUIElement parent, int id) { #if !LINUX return (GUIEditBox)NativeElement.GetObject(GuiEnv_AddEditBoxW(_raw, text, rectangle.ToUnmanaged(), border, GetPtr(parent), id), typeof(GUIEditBox)); #else return (GUIEditBox)NativeElement.GetObject(GuiEnv_AddEditBox(_raw, text, rectangle.ToUnmanaged(), border, GetPtr(parent), id), typeof(GUIEditBox)); #endif }
public GUIStaticText AddStaticTextW(string text, Rect rectangle, bool border, bool wordWrap, GUIElement parent, int id, bool fillBackground) { #if !LINUX return (GUIStaticText)NativeElement.GetObject(GuiEnv_AddStaticTextW(_raw, text, rectangle.ToUnmanaged(), border, wordWrap, GetPtr(parent), id, fillBackground), typeof(GUIStaticText)); #else return (GUIStaticText)NativeElement.GetObject(GuiEnv_AddStaticText(_raw, text, rectangle.ToUnmanaged(), border, wordWrap, GetPtr(parent), id, fillBackground), typeof(GUIStaticText)); #endif }
public GUIListBox AddListBox(Rect rect, GUIElement parent, int id, bool drawBackground) { return (GUIListBox)NativeElement.GetObject(GuiEnv_AddListBox(_raw, rect.ToUnmanaged(), GetPtr(parent), id, drawBackground), typeof(GUIListBox)); }
public GUIInOutFader AddInOutFader(Rect rectangle, GUIElement parent, int id) { return (GUIInOutFader)NativeElement.GetObject(GuiEnv_AddInOutFader(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id), typeof(GUIInOutFader)); }
public GUIImage AddImage(Rect rectangle, GUIElement parent, int id, string text) { return (GUIImage)NativeElement.GetObject(GuiEnv_AddImage(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id, text), typeof(GUIImage)); }
public GUITab AddTab(Rect rectangle, GUIElement parent, int id) { return (GUITab)NativeElement.GetObject(GuiEnv_AddTab(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id), typeof(GUITab)); }
public GUIScrollBar AddScrollBar(bool horizontal, Rect rectangle, GUIElement parent, int id) { return (GUIScrollBar)NativeElement.GetObject(GuiEnv_AddScrollBar(_raw, horizontal, rectangle.ToUnmanaged(), GetPtr(parent), id), typeof(GUIScrollBar)); }
public GUIWindow AddMessageBox(string caption, string text, bool modal, MessageBoxFlag flags, GUIElement parent, int id) { return (GUIWindow)NativeElement.GetObject(GuiEnv_AddMessageBox(_raw, caption, text, modal, flags, GetPtr(parent), id), typeof(GUIWindow)); }
public GUIMeshViewer AddMeshViewer(Rect rectangle, GUIElement parent, int id, string text) { return (GUIMeshViewer)NativeElement.GetObject(GuiEnv_AddMeshViewer(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id, text), typeof(GUIMeshViewer)); }
public bool BringToFront(GUIElement elem) { return GuiElem_BringToFront(_raw, elem.Raw); }
public GUICheckBox AddCheckBox(bool ischecked, Rect rectangle, GUIElement parent, int id, string text) { return (GUICheckBox)NativeElement.GetObject(GuiEnv_AddCheckBox(_raw, ischecked, rectangle.ToUnmanaged(), GetPtr(parent), id, text), typeof(GUICheckBox)); }
public GUIContextMenu AddContextMenu(Rect rectangle, GUIElement parent, int id) { return (GUIContextMenu)NativeElement.GetObject(GuiEnv_AddContextMenu(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id), typeof(GUIContextMenu)); }
public GUITabControl AddTabControl(Rect rectangle, GUIElement parent, bool fillBackground, bool hasBorder, int id) { return (GUITabControl)NativeElement.GetObject(GuiEnv_AddTabControl(_raw, rectangle.ToUnmanaged(), GetPtr(parent), fillBackground, hasBorder, id), typeof(GUITabControl)); }
public GUIImage AddImage(Texture image, Position2D position, bool useAlphaChannel, GUIElement parent, int id, string text) { return (GUIImage)NativeElement.GetObject(GuiEnv_AddImageA(_raw, image.Raw, position.ToUnmanaged(), useAlphaChannel, GetPtr(parent), id, text), typeof(GUIImage)); }
public GUIToolBar AddToolBar(GUIElement parent, int id) { return (GUIToolBar)NativeElement.GetObject(GuiEnv_AddToolBar(_raw, GetPtr(parent), id), typeof(GUIToolBar)); }
public GUIInOutFader AddInOutFader(GUIElement parent, int id) { return (GUIInOutFader)NativeElement.GetObject(GuiEnv_AddInOutFader(_raw, null, GetPtr(parent), id), typeof(GUIInOutFader)); }
public bool HasFocus(GUIElement elem) { return GuiEnv_HasFocus(_raw, elem.Raw); }
public GUIContextMenu AddMenu(GUIElement parent, int id) { return (GUIContextMenu)NativeElement.GetObject(GuiEnv_AddMenu(_raw, GetPtr(parent), id), typeof(GUIContextMenu)); }
public void RemoveFocus(GUIElement elem) { GuiEnv_RemoveFocus(_raw, elem.Raw); }
public GUIButton AddButtonW(Rect rectangle, GUIElement parent, int id, string text) { #if !LINUX return (GUIButton)NativeElement.GetObject(GuiEnv_AddButtonW(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id, text), typeof(GUIButton)); #else return (GUIButton)NativeElement.GetObject(GuiEnv_AddButton(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id, text), typeof(GUIButton)); #endif }
public void SetFocus(GUIElement elem) { GuiEnv_SetFocus(_raw, elem.Raw); }
public GUIWindow AddWindowW(Rect rectangle, bool modal, string text, GUIElement parent, int id) { #if !LINUX return (GUIWindow)NativeElement.GetObject(GuiEnv_AddWindowW(_raw, rectangle.ToUnmanaged(), modal, text, GetPtr(parent), id), typeof(GUIWindow)); #else return (GUIWindow)NativeElement.GetObject(GuiEnv_AddWindow(_raw, rectangle.ToUnmanaged(), modal, text, GetPtr(parent), id), typeof(GUIWindow)); #endif }
public virtual void RemoveChild(GUIElement child) { GuiElem_RemoveChild(_raw, child.Raw); }