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 Freeze for Monitor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more