コード例 #1
0
ファイル: SpriteSheet2D.cs プロジェクト: sami1971/urho
 internal static extern void SpriteSheet2D_DefineSprite(IntPtr handle, string name, ref Urho.IntRect rectangle, ref Urho.Vector2 hotSpot, ref Urho.IntVector2 offset);
コード例 #2
0
ファイル: Sprite.cs プロジェクト: sami1971/urho
 internal static extern void Sprite_SetHotSpot(IntPtr handle, ref Urho.IntVector2 hotSpot);
コード例 #3
0
 internal static extern void View3D_OnResize(IntPtr handle, ref Urho.IntVector2 newSize, ref Urho.IntVector2 delta);
コード例 #4
0
ファイル: Sprite.cs プロジェクト: sami1971/urho
 internal static extern IntVector2 Sprite_ScreenToElement(IntPtr handle, ref Urho.IntVector2 screenPosition);
コード例 #5
0
ファイル: Sprite.cs プロジェクト: sami1971/urho
 internal static extern IntVector2 Sprite_ElementToScreen(IntPtr handle, ref Urho.IntVector2 position);
コード例 #6
0
ファイル: Window.cs プロジェクト: yrest/urho
 internal static extern void Window_OnHover(IntPtr handle, ref Urho.IntVector2 position, ref Urho.IntVector2 screenPosition, int buttons, int qualifiers, IntPtr cursor);
コード例 #7
0
ファイル: Window.cs プロジェクト: yrest/urho
 internal static extern void Window_SetModalFrameSize(IntPtr handle, ref Urho.IntVector2 size);
コード例 #8
0
ファイル: UI.cs プロジェクト: mrozmanith/urho
 internal static extern IntPtr UI_GetElementAt(IntPtr handle, ref Urho.IntVector2 position, bool enabledOnly);
コード例 #9
0
ファイル: UI.cs プロジェクト: mrozmanith/urho
 /// <summary>
 /// Return UI element at screen coordinates. By default returns only input-enabled elements.
 /// </summary>
 public UIElement GetElementAt(Urho.IntVector2 position, bool enabledOnly)
 {
     Runtime.ValidateRefCounted(this);
     return(Runtime.LookupObject <UIElement> (UI_GetElementAt(handle, ref position, enabledOnly)));
 }
コード例 #10
0
ファイル: UI.cs プロジェクト: mrozmanith/urho
 internal static extern void UI_SetCustomSize(IntPtr handle, ref Urho.IntVector2 size);
コード例 #11
0
ファイル: UI.cs プロジェクト: mrozmanith/urho
 /// <summary>
 /// Set custom size of the root element. This disables automatic resizing of the root element according to window size. Set custom size 0,0 to return to automatic resizing.
 /// </summary>
 private void SetCustomSize(Urho.IntVector2 size)
 {
     Runtime.ValidateRefCounted(this);
     UI_SetCustomSize(handle, ref size);
 }
コード例 #12
0
 /// <summary>
 /// Convert heightmap pixel position to world position.
 /// </summary>
 public Vector3 HeightMapToWorld(Urho.IntVector2 pixelPosition)
 {
     Runtime.ValidateRefCounted(this);
     return(Terrain_HeightMapToWorld(handle, ref pixelPosition));
 }
コード例 #13
0
 internal static extern Vector3 Terrain_HeightMapToWorld(IntPtr handle, ref Urho.IntVector2 pixelPosition);
コード例 #14
0
ファイル: SpriteSheet2D.cs プロジェクト: sami1971/urho
 /// <summary>
 /// Define sprite.
 /// </summary>
 public void DefineSprite(string name, Urho.IntRect rectangle, Urho.Vector2 hotSpot, Urho.IntVector2 offset)
 {
     Runtime.ValidateRefCounted(this);
     SpriteSheet2D_DefineSprite(handle, name, ref rectangle, ref hotSpot, ref offset);
 }
コード例 #15
0
ファイル: BorderImage.cs プロジェクト: sweep3r/urho
 internal static extern void BorderImage_SetDisabledOffset(IntPtr handle, ref Urho.IntVector2 offset);
コード例 #16
0
ファイル: CheckBox.cs プロジェクト: yrest/urho
 internal static extern void CheckBox_OnClickBegin(IntPtr handle, ref Urho.IntVector2 position, ref Urho.IntVector2 screenPosition, int button, int buttons, int qualifiers, IntPtr cursor);
コード例 #17
0
ファイル: BorderImage.cs プロジェクト: sweep3r/urho
 /// <summary>
 /// Set offset to image rectangle used when disabled.
 /// </summary>
 private void SetDisabledOffset(Urho.IntVector2 offset)
 {
     Runtime.ValidateRefCounted(this);
     BorderImage_SetDisabledOffset(handle, ref offset);
 }
コード例 #18
0
ファイル: CheckBox.cs プロジェクト: yrest/urho
 internal static extern void CheckBox_SetCheckedOffset(IntPtr handle, ref Urho.IntVector2 rect);
コード例 #19
0
ファイル: Window.cs プロジェクト: yrest/urho
 /// <summary>
 /// React to mouse hover.
 /// </summary>
 public override void OnHover(Urho.IntVector2 position, Urho.IntVector2 screenPosition, int buttons, int qualifiers, Cursor cursor)
 {
     Runtime.ValidateRefCounted(this);
     Window_OnHover(handle, ref position, ref screenPosition, buttons, qualifiers, (object)cursor == null ? IntPtr.Zero : cursor.Handle);
 }
コード例 #20
0
ファイル: CheckBox.cs プロジェクト: yrest/urho
 /// <summary>
 /// Set checked image offset.
 /// </summary>
 private void SetCheckedOffset(Urho.IntVector2 rect)
 {
     Runtime.ValidateRefCounted(this);
     CheckBox_SetCheckedOffset(handle, ref rect);
 }
コード例 #21
0
ファイル: Window.cs プロジェクト: yrest/urho
 /// <summary>
 /// Set modal frame size.
 /// </summary>
 private void SetModalFrameSize(Urho.IntVector2 size)
 {
     Runtime.ValidateRefCounted(this);
     Window_SetModalFrameSize(handle, ref size);
 }
コード例 #22
0
 internal static extern void Sprite2D_SetOffset(IntPtr handle, ref Urho.IntVector2 offset);
コード例 #23
0
ファイル: Sprite.cs プロジェクト: sami1971/urho
 /// <summary>
 /// Convert screen coordinates to element coordinates.
 /// </summary>
 public override IntVector2 ScreenToElement(Urho.IntVector2 screenPosition)
 {
     Runtime.ValidateRefCounted(this);
     return(Sprite_ScreenToElement(handle, ref screenPosition));
 }
コード例 #24
0
 /// <summary>
 /// Set offset.
 /// </summary>
 private void SetOffset(Urho.IntVector2 offset)
 {
     Runtime.ValidateRefCounted(this);
     Sprite2D_SetOffset(handle, ref offset);
 }
コード例 #25
0
ファイル: Sprite.cs プロジェクト: sami1971/urho
 /// <summary>
 /// Convert element coordinates to screen coordinates.
 /// </summary>
 public override IntVector2 ElementToScreen(Urho.IntVector2 position)
 {
     Runtime.ValidateRefCounted(this);
     return(Sprite_ElementToScreen(handle, ref position));
 }
コード例 #26
0
 internal static extern void Input_SetMousePosition(IntPtr handle, ref Urho.IntVector2 position);
コード例 #27
0
ファイル: Sprite.cs プロジェクト: sami1971/urho
 /// <summary>
 /// Set hotspot for positioning and rotation.
 /// </summary>
 private void SetHotSpot(Urho.IntVector2 hotSpot)
 {
     Runtime.ValidateRefCounted(this);
     Sprite_SetHotSpot(handle, ref hotSpot);
 }
コード例 #28
0
 /// <summary>
 /// Set the mouse cursor position. Uses the backbuffer (Graphics width/height) coordinates.
 /// </summary>
 public void SetMousePosition(Urho.IntVector2 position)
 {
     Runtime.ValidateRefCounted(this);
     Input_SetMousePosition(handle, ref position);
 }
コード例 #29
0
 /// <summary>
 /// React to resize.
 /// </summary>
 public override void OnResize(Urho.IntVector2 newSize, Urho.IntVector2 delta)
 {
     Runtime.ValidateRefCounted(this);
     View3D_OnResize(handle, ref newSize, ref delta);
 }
コード例 #30
0
ファイル: Font.cs プロジェクト: sami1971/urho
 /// <summary>
 /// Set absolute (in pixels) position adjustment for glyphs.
 /// </summary>
 private void SetAbsoluteGlyphOffset(Urho.IntVector2 offset)
 {
     Runtime.ValidateRefCounted(this);
     Font_SetAbsoluteGlyphOffset(handle, ref offset);
 }