UserInterfaceSetCursor Method (Texture2D, Int32, NullablePoint) |
Set cursor graphics from a custom texture.
Namespace:
GeonBit.UI
Assembly:
GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void SetCursor(
Texture2D texture,
int drawWidth = 32,
Nullable<Point> offset = null
)
Parameters
- texture
- Type: Texture2D
Texture to use for cursor. - drawWidth (Optional)
- Type: SystemInt32
Width, in pixels to draw the cursor. Height will be calculated automatically to fit texture propotions. - offset (Optional)
- Type: SystemNullablePoint
Cursor offset from mouse position (if not provided will draw cursor with top-left corner on mouse position).
See Also