Struct drm::mode::ModeInfo [] [src]

pub struct ModeInfo {
    pub clock: u32,
    pub hdisplay: u16,
    pub hsync_start: u16,
    pub hsync_end: u16,
    pub htotal: u16,
    pub hskew: u16,
    pub vdisplay: u16,
    pub vsync_start: u16,
    pub vsync_end: u16,
    pub vtotal: u16,
    pub vscan: u16,
    pub vrefresh: u32,
    pub flags: ModeFlags,
    pub type_: ModeType,
    // some fields omitted
}

The mode configuration fo the screen.

Set's the resolution and refresh rate. Note that screens usually cannot handle arbitary values here.

Fields

Methods

impl ModeInfo
[src]

Get's the name of the current mode.

Trait Implementations

impl Copy for ModeInfo
[src]

impl Clone for ModeInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<modeinfo> for ModeInfo
[src]

Performs the conversion.

impl Debug for ModeInfo
[src]

Formats the value using the given formatter.