diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-09-21 14:42:05 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-09-23 13:11:47 +0200 |
commit | aa9cb99929ee1893699184ded888b2586455f016 (patch) | |
tree | b16503dbfe2248beeed0f7d82b150e64e6453043 /src/api/cocoa/monitor.rs | |
parent | 3820d307a3f23828790e8a46a9c46849592104d6 (diff) | |
download | glutin-aa9cb99929ee1893699184ded888b2586455f016.tar.gz glutin-aa9cb99929ee1893699184ded888b2586455f016.zip |
Add #[inline] attributes
Diffstat (limited to 'src/api/cocoa/monitor.rs')
-rw-r--r-- | src/api/cocoa/monitor.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/cocoa/monitor.rs b/src/api/cocoa/monitor.rs index 138bbcd..600f7e9 100644 --- a/src/api/cocoa/monitor.rs +++ b/src/api/cocoa/monitor.rs @@ -21,6 +21,7 @@ pub fn get_available_monitors() -> VecDeque<MonitorID> { monitors } +#[inline] pub fn get_primary_monitor() -> MonitorID { let id = unsafe { MonitorID(display::CGMainDisplayID()) @@ -37,6 +38,7 @@ impl MonitorID { Some(format!("Monitor #{}", screen_num)) } + #[inline] pub fn get_native_identifier(&self) -> NativeMonitorId { let MonitorID(display_id) = *self; NativeMonitorId::Numeric(display_id) |