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
height
red_bits
green_bits
blue_bits
refresh_rate

Trait Implementations

impl Show for VidMode

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"