pub struct Monitor { /* private fields */ }Expand description
A struct that wraps a *GLFWmonitor handle.
Implementations
sourceimpl Monitor
impl Monitor
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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more