Class Cursor
Definition
Namespace: StardewUI.Graphics
Assembly: StardewUI.dll
Defines a cursor that can be drawn instead of or in addition to the regular mouse pointer.
Inheritance
Object ⇦ Cursor
Implements
IEquatable<Cursor>
Members
Constructors
| Name | Description |
|---|---|
| Cursor(Sprite, Point?, Point?, Color?) | Defines a cursor that can be drawn instead of or in addition to the regular mouse pointer. |
Fields
| Name | Description |
|---|---|
| DefaultOffset | The default offset to apply when Offset is not specified. |
| DefaultTint | The default color to tint with when Tint is not specified. |
Properties
| Name | Description |
|---|---|
| EqualityContract | |
| Offset | Offset from the exact mouse position where the sprite should be drawn. This always refers to the top-left corner of the sprite. If not specified, uses DefaultOffset. |
| Size | Size with which to draw the Sprite, if different from the size of the sprite's SourceRect. |
| Sprite | The sprite to draw. |
| Tint | Tint color for the sprite. If not specified, uses DefaultTint. |
Details
Constructors
Cursor(Sprite, Point?, Point?, Color?)
Defines a cursor that can be drawn instead of or in addition to the regular mouse pointer.
public Cursor(StardewUI.Graphics.Sprite Sprite, Microsoft.Xna.Framework.Point? Size, Microsoft.Xna.Framework.Point? Offset, Microsoft.Xna.Framework.Color? Tint);
Parameters
Sprite Sprite
The sprite to draw.
Size Nullable<Point>
Size with which to draw the Sprite, if different from the size of the sprite's SourceRect.
Offset Nullable<Point>
Offset from the exact mouse position where the sprite should be drawn. This always refers to the top-left corner of the sprite. If not specified, uses DefaultOffset.
Tint Nullable<Color>
Tint color for the sprite. If not specified, uses DefaultTint.
Fields
DefaultOffset
The default offset to apply when Offset is not specified.
Field Value
DefaultTint
The default color to tint with when Tint is not specified.
Field Value
Properties
EqualityContract
Property Value
Offset
Offset from the exact mouse position where the sprite should be drawn. This always refers to the top-left corner of the sprite. If not specified, uses DefaultOffset.
Property Value
Size
Size with which to draw the Sprite, if different from the size of the sprite's SourceRect.
Property Value
Sprite
The sprite to draw.
Property Value
Tint
Tint color for the sprite. If not specified, uses DefaultTint.