Struct glfw::VidMode [] [src]

pub struct VidMode {
    pub width: u32,
    pub height: u32,
    pub red_bits: u32,
    pub green_bits: u32,
    pub blue_bits: u32,
    pub refresh_rate: u32,
}

Describes a single video mode.

Fields

width: u32 height: u32 red_bits: u32 green_bits: u32 blue_bits: u32 refresh_rate: u32

Trait Implementations

impl Clone for VidMode
[src]

fn clone(&self) -> VidMode

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for VidMode
[src]

impl Debug for VidMode
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Returns a string representation of the video mode.

Returns

A string in the form:

~"[width] x [height], [total_bits] ([red_bits] [green_bits] [blue_bits]) [refresh_rate] Hz"