#[repr(C)]pub struct GLFWvidmode {
pub width: i32,
pub height: i32,
pub redBits: i32,
pub greenBits: i32,
pub blueBits: i32,
pub refreshRate: i32,
}Expand description
@brief Video mode type.
This describes a single video mode.
@sa @ref monitor_modes @sa @ref glfwGetVideoMode @sa @ref glfwGetVideoModes
@since Added in version 1.0. @glfw3 Added refresh rate member.
@ingroup monitor
Fields§
§width: i32The width, in screen coordinates, of the video mode.
height: i32The height, in screen coordinates, of the video mode.
redBits: i32The bit depth of the red channel of the video mode.
greenBits: i32The bit depth of the green channel of the video mode.
blueBits: i32The bit depth of the blue channel of the video mode.
refreshRate: i32The refresh rate, in Hz, of the video mode.
Trait Implementations§
Source§impl Clone for GLFWvidmode
impl Clone for GLFWvidmode
Source§fn clone(&self) -> GLFWvidmode
fn clone(&self) -> GLFWvidmode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GLFWvidmode
impl Debug for GLFWvidmode
impl Copy for GLFWvidmode
Auto Trait Implementations§
impl Freeze for GLFWvidmode
impl RefUnwindSafe for GLFWvidmode
impl Send for GLFWvidmode
impl Sync for GLFWvidmode
impl Unpin for GLFWvidmode
impl UnwindSafe for GLFWvidmode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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