feat: add current cursor and currentsystem cursor
This commit is contained in:
parent
0294647683
commit
bfb2792d3c
|
@ -9,6 +9,12 @@ pub enum CursorType {
|
||||||
/// A standard arrow.
|
/// A standard arrow.
|
||||||
Arrow,
|
Arrow,
|
||||||
|
|
||||||
|
/// Current Cusrosr
|
||||||
|
Current,
|
||||||
|
|
||||||
|
/// Current System cursor
|
||||||
|
CurrentSystem,
|
||||||
|
|
||||||
/// A crosshair.
|
/// A crosshair.
|
||||||
Crosshair,
|
Crosshair,
|
||||||
|
|
||||||
|
@ -96,6 +102,8 @@ impl Cursor {
|
||||||
unsafe {
|
unsafe {
|
||||||
let cursor: id = match cursor_type {
|
let cursor: id = match cursor_type {
|
||||||
CursorType::Arrow => msg_send![class!(NSCursor), arrowCursor],
|
CursorType::Arrow => msg_send![class!(NSCursor), arrowCursor],
|
||||||
|
CursorType::Current => msg_send![class!(NSCursor), currentCursor],
|
||||||
|
CursorType::CurrentSystem => msg_send![class!(NSCursor), currentSystemCursor],
|
||||||
CursorType::Crosshair => msg_send![class!(NSCursor), crosshairCursor],
|
CursorType::Crosshair => msg_send![class!(NSCursor), crosshairCursor],
|
||||||
CursorType::ClosedHand => msg_send![class!(NSCursor), closedHandCursor],
|
CursorType::ClosedHand => msg_send![class!(NSCursor), closedHandCursor],
|
||||||
CursorType::OpenHand => msg_send![class!(NSCursor), openHandCursor],
|
CursorType::OpenHand => msg_send![class!(NSCursor), openHandCursor],
|
||||||
|
|
Loading…
Reference in a new issue