示例#1
0
 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));
 }
示例#2
0
 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));
 }
示例#3
0
        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);
            }
        }
示例#4
0
 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
        }
示例#7
0
 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));
 }
示例#8
0
 public GUIInOutFader AddInOutFader(Rect rectangle, GUIElement parent, int id)
 {
     return (GUIInOutFader)NativeElement.GetObject(GuiEnv_AddInOutFader(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id),
                                               typeof(GUIInOutFader));
 }
示例#9
0
 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));
 }
示例#10
0
 public GUITab AddTab(Rect rectangle, GUIElement parent, int id)
 {
     return (GUITab)NativeElement.GetObject(GuiEnv_AddTab(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id),
                                               typeof(GUITab));
 }
示例#11
0
 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));
 }
示例#12
0
 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));
 }
示例#13
0
 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));
 }
示例#14
0
 public bool BringToFront(GUIElement elem)
 {
     return GuiElem_BringToFront(_raw, elem.Raw);
 }
示例#15
0
 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));
 }
示例#16
0
 public GUIContextMenu AddContextMenu(Rect rectangle, GUIElement parent, int id)
 {
     return (GUIContextMenu)NativeElement.GetObject(GuiEnv_AddContextMenu(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id),
                                               typeof(GUIContextMenu));
 }
示例#17
0
 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));
 }
示例#18
0
 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));
 }
示例#19
0
 public GUIToolBar AddToolBar(GUIElement parent, int id)
 {
     return (GUIToolBar)NativeElement.GetObject(GuiEnv_AddToolBar(_raw, GetPtr(parent), id), typeof(GUIToolBar));
 }
示例#20
0
 public GUIInOutFader AddInOutFader(GUIElement parent, int id)
 {
     return (GUIInOutFader)NativeElement.GetObject(GuiEnv_AddInOutFader(_raw, null, GetPtr(parent), id),
                                               typeof(GUIInOutFader));
 }
示例#21
0
 public bool HasFocus(GUIElement elem)
 {
     return GuiEnv_HasFocus(_raw, elem.Raw);
 }
示例#22
0
 public GUIContextMenu AddMenu(GUIElement parent, int id)
 {
     return (GUIContextMenu)NativeElement.GetObject(GuiEnv_AddMenu(_raw, GetPtr(parent), id), typeof(GUIContextMenu));
 }
示例#23
0
 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
        }
示例#25
0
 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
        }
示例#27
0
 public virtual void RemoveChild(GUIElement child)
 {
     GuiElem_RemoveChild(_raw, child.Raw);
 }