aboutsummaryrefslogtreecommitdiffstats
path: root/src/cocoa
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-03-26 17:04:01 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-03-26 17:15:18 +0100
commit3d692870e25521871067e9756804127bd80f584d (patch)
treee3c865de4daf314f6d963a09f73371beb714570c /src/cocoa
parentd6ebaaaf5cbb1839e74c3c7c0573b1f842c59e6b (diff)
downloadglutin-3d692870e25521871067e9756804127bd80f584d.tar.gz
glutin-3d692870e25521871067e9756804127bd80f584d.zip
Change grab_cursor and ungrab_cursor to set_cursor_state
Diffstat (limited to 'src/cocoa')
-rw-r--r--src/cocoa/mod.rs6
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