diff options
Diffstat (limited to 'src/cocoa')
-rw-r--r-- | src/cocoa/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs index c150be0..5859591 100644 --- a/src/cocoa/mod.rs +++ b/src/cocoa/mod.rs @@ -1,7 +1,7 @@ #[cfg(feature = "headless")] pub use self::headless::HeadlessContext; -use {CreationError, Event, MouseCursor}; +use {CreationError, Event, MouseCursor, CursorState}; use CreationError::OsError; use libc; @@ -661,6 +661,10 @@ impl Window { } } + pub fn set_cursor_state(&self, state: CursorState) -> Result<(), String> { + unimplemented!(); + } + pub fn hidpi_factor(&self) -> f32 { unsafe { NSWindow::backingScaleFactor(*self.window) as f32 |