pub struct Monitor { /* private fields */ }
Expand description
A struct that wraps a *GLFWmonitor
handle.
Implementations§
source§impl Monitor
impl Monitor
sourcepub fn get_physical_size(&self) -> (i32, i32)
pub fn get_physical_size(&self) -> (i32, i32)
Wrapper for glfwGetMonitorPhysicalSize
.
sourcepub fn get_video_modes(&self) -> Vec<VidMode>
pub fn get_video_modes(&self) -> Vec<VidMode>
Wrapper for glfwGetVideoModes
.
sourcepub fn get_video_mode(&self) -> Option<VidMode>
pub fn get_video_mode(&self) -> Option<VidMode>
Wrapper for glfwGetVideoMode
.
sourcepub fn get_gamma_ramp(&self) -> GammaRamp
pub fn get_gamma_ramp(&self) -> GammaRamp
Wrapper for glfwGetGammaRamp
.
sourcepub fn set_gamma_ramp(&mut self, ramp: &mut GammaRamp)
pub fn set_gamma_ramp(&mut self, ramp: &mut GammaRamp)
Wrapper for glfwSetGammaRamp
.
sourcepub fn get_content_scale(&self) -> (f32, f32)
pub fn get_content_scale(&self) -> (f32, f32)
Wrapper for glfwGetMonitorContentScale
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Monitor
impl !Send for Monitor
impl !Sync for Monitor
impl Unpin for Monitor
impl UnwindSafe for Monitor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more