Class Cursor
Core system for set appearance of mouse cursor
Methods
GetResizeCursorIndex(Direction8)
Get resize cursor index from given direction
Declaration
public static int GetResizeCursorIndex(Direction8 direction)
RequireCursor(int)
Need to display the cursor for current frame
Declaration
public static void RequireCursor(int priority = -1)
SetCursor(int, IRect, int)
Declaration
public static void SetCursor(int cursorIndex, IRect mouseRange, int priority = 0)
Parameters
Type | Name | Description |
---|---|---|
int | cursorIndex | Get this value with Const.CURSOR_XXX |
IRect | mouseRange | Only work when mouse inside given range in global space |
SetCursor(int, int)
Declaration
public static void SetCursor(int cursorIndex, int priority = 0)
Parameters
Type | Name | Description |
---|---|---|
int | cursorIndex | Get this value with Const.CURSOR_XXX |
SetCursorAsBeam(IRect, int)
Make cursor to typing beam for current frame.
Declaration
public static void SetCursorAsBeam(IRect mouseRange, int priority = 0)
Parameters
Type | Name | Description |
---|---|---|
IRect | mouseRange | Only work when mouse inside given range in global space |
SetCursorAsBeam(int)
Make cursor to typing beam for current frame.
Declaration
public static void SetCursorAsBeam(int priority = 0)
SetCursorAsHand(IRect, int)
Make cursor to point hand for current frame.
Declaration
public static void SetCursorAsHand(IRect mouseRange, int priority = 0)
Parameters
Type | Name | Description |
---|---|---|
IRect | mouseRange | Only work when mouse inside given range in global space |
SetCursorAsHand(int)
Make cursor to point hand for current frame.
Declaration
public static void SetCursorAsHand(int priority = 0)
SetCursorAsMove(IRect, int)
Make cursor to cross with arrows for current frame.
Declaration
public static void SetCursorAsMove(IRect mouseRange, int priority = 0)
Parameters
Type | Name | Description |
---|---|---|
IRect | mouseRange | Only work when mouse inside given range in global space |
SetCursorAsMove(int)
Make cursor to cross with arrows for current frame.
Declaration
public static void SetCursorAsMove(int priority = 0)
SetCursorAsNone(int)
Set cursor into none
Declaration
public static void SetCursorAsNone(int priority = 0)
SetCursorAsNormal(int)
Make cursor to default style
Declaration
public static void SetCursorAsNormal(int priority = 0)