Struct GLFWvidmode
#[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§
§impl Clone for GLFWvidmode
impl Clone for GLFWvidmode
§fn clone(&self) -> GLFWvidmode
fn clone(&self) -> GLFWvidmode
Returns a copy 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 more§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)