internal static extern void SpriteSheet2D_DefineSprite(IntPtr handle, string name, ref Urho.IntRect rectangle, ref Urho.Vector2 hotSpot, ref Urho.IntVector2 offset);
internal static extern void Sprite_SetHotSpot(IntPtr handle, ref Urho.IntVector2 hotSpot);
internal static extern void View3D_OnResize(IntPtr handle, ref Urho.IntVector2 newSize, ref Urho.IntVector2 delta);
internal static extern IntVector2 Sprite_ScreenToElement(IntPtr handle, ref Urho.IntVector2 screenPosition);
internal static extern IntVector2 Sprite_ElementToScreen(IntPtr handle, ref Urho.IntVector2 position);
internal static extern void Window_OnHover(IntPtr handle, ref Urho.IntVector2 position, ref Urho.IntVector2 screenPosition, int buttons, int qualifiers, IntPtr cursor);
internal static extern void Window_SetModalFrameSize(IntPtr handle, ref Urho.IntVector2 size);
internal static extern IntPtr UI_GetElementAt(IntPtr handle, ref Urho.IntVector2 position, bool enabledOnly);
/// <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))); }
internal static extern void UI_SetCustomSize(IntPtr handle, ref Urho.IntVector2 size);
/// <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); }
/// <summary> /// Convert heightmap pixel position to world position. /// </summary> public Vector3 HeightMapToWorld(Urho.IntVector2 pixelPosition) { Runtime.ValidateRefCounted(this); return(Terrain_HeightMapToWorld(handle, ref pixelPosition)); }
internal static extern Vector3 Terrain_HeightMapToWorld(IntPtr handle, ref Urho.IntVector2 pixelPosition);
/// <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); }
internal static extern void BorderImage_SetDisabledOffset(IntPtr handle, ref Urho.IntVector2 offset);
internal static extern void CheckBox_OnClickBegin(IntPtr handle, ref Urho.IntVector2 position, ref Urho.IntVector2 screenPosition, int button, int buttons, int qualifiers, IntPtr cursor);
/// <summary> /// Set offset to image rectangle used when disabled. /// </summary> private void SetDisabledOffset(Urho.IntVector2 offset) { Runtime.ValidateRefCounted(this); BorderImage_SetDisabledOffset(handle, ref offset); }
internal static extern void CheckBox_SetCheckedOffset(IntPtr handle, ref Urho.IntVector2 rect);
/// <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); }
/// <summary> /// Set checked image offset. /// </summary> private void SetCheckedOffset(Urho.IntVector2 rect) { Runtime.ValidateRefCounted(this); CheckBox_SetCheckedOffset(handle, ref rect); }
/// <summary> /// Set modal frame size. /// </summary> private void SetModalFrameSize(Urho.IntVector2 size) { Runtime.ValidateRefCounted(this); Window_SetModalFrameSize(handle, ref size); }
internal static extern void Sprite2D_SetOffset(IntPtr handle, ref Urho.IntVector2 offset);
/// <summary> /// Convert screen coordinates to element coordinates. /// </summary> public override IntVector2 ScreenToElement(Urho.IntVector2 screenPosition) { Runtime.ValidateRefCounted(this); return(Sprite_ScreenToElement(handle, ref screenPosition)); }
/// <summary> /// Set offset. /// </summary> private void SetOffset(Urho.IntVector2 offset) { Runtime.ValidateRefCounted(this); Sprite2D_SetOffset(handle, ref offset); }
/// <summary> /// Convert element coordinates to screen coordinates. /// </summary> public override IntVector2 ElementToScreen(Urho.IntVector2 position) { Runtime.ValidateRefCounted(this); return(Sprite_ElementToScreen(handle, ref position)); }
internal static extern void Input_SetMousePosition(IntPtr handle, ref Urho.IntVector2 position);
/// <summary> /// Set hotspot for positioning and rotation. /// </summary> private void SetHotSpot(Urho.IntVector2 hotSpot) { Runtime.ValidateRefCounted(this); Sprite_SetHotSpot(handle, ref hotSpot); }
/// <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); }
/// <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); }
/// <summary> /// Set absolute (in pixels) position adjustment for glyphs. /// </summary> private void SetAbsoluteGlyphOffset(Urho.IntVector2 offset) { Runtime.ValidateRefCounted(this); Font_SetAbsoluteGlyphOffset(handle, ref offset); }