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
.