Example #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));
 }
Example #2
0
 public GUIInOutFader AddInOutFader(Rect rectangle, GUIElement parent, int id)
 {
     return (GUIInOutFader)NativeElement.GetObject(GuiEnv_AddInOutFader(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id),
                                               typeof(GUIInOutFader));
 }
Example #3
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));
 }
Example #4
0
 public GUIContextMenu AddContextMenu(Rect rectangle, GUIElement parent, int id)
 {
     return (GUIContextMenu)NativeElement.GetObject(GuiEnv_AddContextMenu(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id),
                                               typeof(GUIContextMenu));
 }
Example #5
0
 public void Draw2DImage(Texture image, Position2D destPos, Rect sourceRect, Color color, bool useAlpha)
 {
     VideoDriver_Draw2DImageB(_raw, image.Raw, destPos.ToUnmanaged(), sourceRect.ToUnmanaged(), color.ToUnmanaged(), useAlpha);
 }
        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 void DrawW(string text, Position2D pos, Color color, bool hcenter, bool vcenter, Rect cliprect)
        {
#if !LINUX
            GUIFont_DrawW(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, cliprect.ToUnmanaged());
#else
            GUIFont_Draw(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, cliprect.ToUnmanaged());
#endif
        }
Example #9
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));
 }
Example #10
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));
 }
Example #11
0
 /// <summary>
 /// Ends the scene
 /// </summary>
 public void EndScene(IntPtr windowHandle, Rect sourceRect)
 {
     VideoDriver_EndSceneA(_raw, windowHandle.ToInt32(), sourceRect.ToUnmanaged());
 }
Example #12
0
 public void Draw2DRectangle(Rect rectangle, Color color)
 {
     Draw2DRectangle(rectangle, color, color, color, color);
 }
Example #13
0
 public void Draw2DRectangle(Rect rectangle, Color leftUp, Color rightUp, Color leftDown, Color rightDown)
 {
     VideoDriver_Draw2DRectangle(_raw, rectangle.ToUnmanaged(), leftUp.ToUnmanaged(), rightUp.ToUnmanaged(), leftDown.ToUnmanaged(), rightDown.ToUnmanaged());
 }
Example #14
0
 public void Draw2DImage(Texture image, Rect destRect, Rect sourceRect, Rect clipRect, Color color, bool useAlpha)
 {
     VideoDriver_Draw2DImageC(_raw, image.Raw, destRect.ToUnmanaged(), sourceRect.ToUnmanaged(), clipRect.ToUnmanaged(), color.ToUnmanaged(), color.ToUnmanaged(), color.ToUnmanaged(), color.ToUnmanaged(), useAlpha);
 }
Example #15
0
 public void Draw2DImage(Texture image, Rect destRect, Rect sourceRect, Color[] color, bool useAlpha)
 {
     VideoDriver_Draw2DImageD(_raw, image.Raw, destRect.ToUnmanaged(), sourceRect.ToUnmanaged(), color[0].ToUnmanaged(), color[1].ToUnmanaged(), color[2].ToUnmanaged(), color[3].ToUnmanaged(), useAlpha);
 }
Example #16
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));
 }
Example #17
0
 public void SetPressedImage(Texture image, Rect pos)
 {
     GUIButton_SetPressedImage(_raw, image.Raw, pos.ToUnmanaged());
 }
Example #18
0
 public GUITab AddTab(Rect rectangle, GUIElement parent, int id)
 {
     return (GUITab)NativeElement.GetObject(GuiEnv_AddTab(_raw, rectangle.ToUnmanaged(), GetPtr(parent), id),
                                               typeof(GUITab));
 }
        public void DrawW(string text, Rect rect, Color color, bool hcenter, bool vcenter)
        {
#if !LINUX
            GUIFont_DrawW(_raw, text, rect.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, null);
#else
            GUIFont_Draw(_raw, text, rect.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, null);
#endif
        }
Example #20
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));
 }
        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
        }
Example #22
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));
 }
        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
        }
Example #24
0
 public void Draw(string text, Position2D pos, Color color, bool hcenter, bool vcenter, Rect cliprect)
 {
     GUIFont_Draw(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, cliprect.ToUnmanaged());
 }