Пример #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);
 }