コード例 #1
0
		public GUISpinBox AddSpinBox (string text, Rect rectangle, bool border, GUIElement parent, int id)
		{
			IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);

			return (GUISpinBox)NativeElement.GetObject(GuiEnv_AddSpinBox(_raw, text,
			                                                             rectangle.ToUnmanaged(),
                                                                         border,
			                                                             par, id), typeof(GUISpinBox));
		}
コード例 #2
0
		public IGUIElement (GUIEnvironment guienv, GUIElement parent, int id, 
		                    Rect rect)
		{
			antigc1 = OnCallbackVoid;
			antigc2 = OnCallbackInt;
			antigc3 = OnCallbackIntptr;

			Initialize (CGE_CREATE(guienv.Raw, 
			                       parent == null? guienv.RootElement.Raw : parent.Raw, 
			                       id, 
			                       rect.ToUnmanaged(), 
			                       antigc1,
			                       antigc2,
			                       antigc3));
			
		}
コード例 #3
0
 public void DrawW(string text, Position2D pos, Color color, bool hcenter, bool vcenter, Rect cliprect)
 {
     GUIFont_DrawW(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, cliprect.ToUnmanaged());
 }
コード例 #4
0
ファイル: VideoDriver.cs プロジェクト: Paulus/irrlichtnetcp
 /// <summary>
 /// Ends the scene
 /// </summary>
 public void EndScene(IntPtr windowHandle, Rect sourceRect)
 {
     VideoDriver_EndSceneA(_raw, windowHandle.ToInt32(), sourceRect.ToUnmanaged());
 }
コード例 #5
0
ファイル: VideoDriver.cs プロジェクト: Paulus/irrlichtnetcp
 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());
 }
コード例 #6
0
ファイル: VideoDriver.cs プロジェクト: Paulus/irrlichtnetcp
 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);
 }
コード例 #7
0
        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
        }
コード例 #8
0
 public GUIStaticText AddStaticTextW(string text, Rect rectangle, bool border, bool wordWrap, GUIElement parent, int id, bool fillBackground)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUIStaticText)NativeElement.GetObject(GuiEnv_AddStaticTextW(_raw, text, rectangle.ToUnmanaged(), border, wordWrap, par, id, fillBackground),
                                               typeof(GUIStaticText));
 }
コード例 #9
0
 public void SetPressedImage(Texture image, Rect pos)
 {
     GUIButton_SetPressedImage(_raw, image.Raw, pos.ToUnmanaged());
 }
コード例 #10
0
 public GUICheckBox AddCheckBox(bool ischecked, Rect rectangle, GUIElement parent, int id, string text)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUICheckBox)NativeElement.GetObject(GuiEnv_AddCheckBox(_raw, ischecked, rectangle.ToUnmanaged(), par, id, text),
                                               typeof(GUICheckBox));
 }
コード例 #11
0
 public GUITabControl AddTabControl(Rect rectangle, GUIElement parent, bool fillBackground, bool hasBorder, int id)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUITabControl)NativeElement.GetObject(GuiEnv_AddTabControl(_raw, rectangle.ToUnmanaged(), par, fillBackground, hasBorder, id),
                                               typeof(GUITabControl));
 }
コード例 #12
0
 public GUITab AddTab(Rect rectangle, GUIElement parent, int id)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUITab)NativeElement.GetObject(GuiEnv_AddTab(_raw, rectangle.ToUnmanaged(), par, id),
                                               typeof(GUITab));
 }
コード例 #13
0
 public GUIScrollBar AddScrollBar(bool horizontal, Rect rectangle, GUIElement parent, int id)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUIScrollBar)NativeElement.GetObject(GuiEnv_AddScrollBar(_raw, horizontal, rectangle.ToUnmanaged(), par, id),
                                               typeof(GUIScrollBar));
 }
コード例 #14
0
 public GUIListBox AddListBox(Rect rect, GUIElement parent, int id, bool drawBackground)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUIListBox)NativeElement.GetObject(GuiEnv_AddListBox(_raw, rect.ToUnmanaged(), par, id, drawBackground),
                                               typeof(GUIListBox));
 }
コード例 #15
0
        public GUIEditBox AddEditBoxW(string text, Rect rectangle, bool border, GUIElement parent, int id)
        {
            IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
#if !LINUX
			return (GUIEditBox)NativeElement.GetObject(GuiEnv_AddEditBoxW(_raw, text, rectangle.ToUnmanaged(), border, par, id),
                                                      typeof(GUIEditBox));
#else
			return (GUIEditBox)NativeElement.GetObject(GuiEnv_AddEditBox(_raw, text, rectangle.ToUnmanaged(), border, par, id),
                                                      typeof(GUIEditBox));
#endif
		}
コード例 #16
0
 public void DrawW(string text, Rect rect, Color color, bool hcenter, bool vcenter)
 {
     GUIFont_DrawW(_raw, text, rect.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, null);
 }
コード例 #17
0
 public GUIButton AddButtonW(Rect rectangle, GUIElement parent, int id, string text)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUIButton)NativeElement.GetObject(GuiEnv_AddButtonW(_raw, rectangle.ToUnmanaged(), par, id, text),
                                               typeof(GUIButton));
 }
コード例 #18
0
ファイル: VideoDriver.cs プロジェクト: Paulus/irrlichtnetcp
 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);
 }
コード例 #19
0
 public GUIWindow AddWindowW(Rect rectangle, bool modal, string text, GUIElement parent, int id)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUIWindow)NativeElement.GetObject(GuiEnv_AddWindowW(_raw, rectangle.ToUnmanaged(), modal, text, par, id),
                                               typeof(GUIWindow));
 }
コード例 #20
0
ファイル: VideoDriver.cs プロジェクト: Paulus/irrlichtnetcp
 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);
 }