#[repr(C)]pub struct GLFWvidmode {
pub width: c_int,
pub height: c_int,
pub redBits: c_int,
pub greenBits: c_int,
pub blueBits: c_int,
pub refreshRate: c_int,
}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: c_intThe width, in screen coordinates, of the video mode.
height: c_intThe height, in screen coordinates, of the video mode.
redBits: c_intThe bit depth of the red channel of the video mode.
greenBits: c_intThe bit depth of the green channel of the video mode.
blueBits: c_intThe bit depth of the blue channel of the video mode.
refreshRate: c_intThe 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