diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-09-24 09:11:59 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-09-24 09:11:59 +0200 |
commit | 86fa1b58e5a44a1711e812ed1e56c0e2c6946eed (patch) | |
tree | c60477887a81d310e11f37c1e25ec3d5862ead7b /src/api/wayland | |
parent | aa5f5de1099fab89f173fb02bae16324946de147 (diff) | |
download | glutin-86fa1b58e5a44a1711e812ed1e56c0e2c6946eed.tar.gz glutin-86fa1b58e5a44a1711e812ed1e56c0e2c6946eed.zip |
Rename MonitorID -> MonitorId
Diffstat (limited to 'src/api/wayland')
-rw-r--r-- | src/api/wayland/mod.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs index a57ffec..81acbf0 100644 --- a/src/api/wayland/mod.rs +++ b/src/api/wayland/mod.rs @@ -29,7 +29,7 @@ use std::ops::{Deref, DerefMut}; use std::sync::{Arc, Mutex}; use std::ffi::CString; -use platform::MonitorID as PlatformMonitorID; +use platform::MonitorId as PlatformMonitorId; use self::context::WaylandContext; @@ -166,25 +166,25 @@ impl WindowProxy { } #[derive(Clone)] -pub struct MonitorID { +pub struct MonitorId { output: Arc<Output> } #[inline] -pub fn get_available_monitors() -> VecDeque<MonitorID> { - WAYLAND_CONTEXT.as_ref().unwrap().outputs.iter().map(|o| MonitorID::new(o.clone())).collect() +pub fn get_available_monitors() -> VecDeque<MonitorId> { + WAYLAND_CONTEXT.as_ref().unwrap().outputs.iter().map(|o| MonitorId::new(o.clone())).collect() } #[inline] -pub fn get_primary_monitor() -> MonitorID { +pub fn get_primary_monitor() -> MonitorId { match WAYLAND_CONTEXT.as_ref().unwrap().outputs.iter().next() { - Some(o) => MonitorID::new(o.clone()), + Some(o) => MonitorId::new(o.clone()), None => panic!("No monitor is available.") } } -impl MonitorID { - fn new(output: Arc<Output>) -> MonitorID { - MonitorID { +impl MonitorId { + fn new(output: Arc<Output>) -> MonitorId { + MonitorId { output: output } } @@ -272,7 +272,7 @@ impl Window { h as i32 ); - let mut shell_window = if let Some(PlatformMonitorID::Wayland(ref monitor)) = window.monitor { + let mut shell_window = if let Some(PlatformMonitorId::Wayland(ref monitor)) = window.monitor { let shell_surface = wayland_context.shell.get_shell_surface(surface); shell_surface.set_fullscreen(ShellFullscreenMethod::Default, Some(&monitor.output)); ShellWindow::Plain(shell_surface) |