Struct drm::control::Mode [−][src]
#[repr(transparent)]pub struct Mode { /* fields omitted */ }
Resolution and timing information for a display mode.
Implementations
impl Mode[src]
impl Mode[src]pub fn name(&self) -> &CStr[src]
Returns the name of this mode.
pub fn clock(&self) -> u32[src]
Returns the clock speed of this mode.
pub fn size(&self) -> (u16, u16)[src]
Returns the size (resolution) of the mode.
pub fn hsync(&self) -> (u16, u16, u16)[src]
Returns the horizontal sync start, end, and total.
pub fn vsync(&self) -> (u16, u16, u16)[src]
Returns the vertical sync start, end, and total.
pub fn hskew(&self) -> u16[src]
Returns the horizontal skew of this mode.
pub fn vscan(&self) -> u16[src]
Returns the vertical scan of this mode.
pub fn vrefresh(&self) -> u32[src]
Returns the vertical refresh rate of this mode
Trait Implementations
impl StructuralEq for Mode[src]
impl StructuralEq for Mode[src]impl StructuralPartialEq for Mode[src]
impl StructuralPartialEq for Mode[src]Auto Trait Implementations
impl RefUnwindSafe for Mode
impl RefUnwindSafe for Modeimpl UnwindSafe for Mode
impl UnwindSafe for Mode