Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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);
            }
        }
Esempio n. 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
        }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 14
0
 public bool BringToFront(GUIElement elem)
 {
     return GuiElem_BringToFront(_raw, elem.Raw);
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 19
0
 public GUIToolBar AddToolBar(GUIElement parent, int id)
 {
     return (GUIToolBar)NativeElement.GetObject(GuiEnv_AddToolBar(_raw, GetPtr(parent), id), typeof(GUIToolBar));
 }
Esempio n. 20
0
 public GUIInOutFader AddInOutFader(GUIElement parent, int id)
 {
     return (GUIInOutFader)NativeElement.GetObject(GuiEnv_AddInOutFader(_raw, null, GetPtr(parent), id),
                                               typeof(GUIInOutFader));
 }
Esempio n. 21
0
 public bool HasFocus(GUIElement elem)
 {
     return GuiEnv_HasFocus(_raw, elem.Raw);
 }
Esempio n. 22
0
 public GUIContextMenu AddMenu(GUIElement parent, int id)
 {
     return (GUIContextMenu)NativeElement.GetObject(GuiEnv_AddMenu(_raw, GetPtr(parent), id), typeof(GUIContextMenu));
 }
Esempio n. 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
        }
Esempio n. 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
        }
Esempio n. 27
0
 public virtual void RemoveChild(GUIElement child)
 {
     GuiElem_RemoveChild(_raw, child.Raw);
 }