Struct sdl2::video::DisplayMode [] [src]

pub struct DisplayMode {
    pub format: u32,
    pub w: i32,
    pub h: i32,
    pub refresh_rate: i32,
}

Fields

format
w
h
refresh_rate

Methods

impl DisplayMode

fn new(format: u32, w: i32, h: i32, refresh_rate: i32) -> DisplayMode

fn from_ll(raw: &SDL_DisplayMode) -> DisplayMode

fn to_ll(&self) -> SDL_DisplayMode

Trait Implementations

Derived Implementations

impl Debug for DisplayMode

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

impl Hash for DisplayMode

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialEq for DisplayMode

fn eq(&self, __arg_0: &DisplayMode) -> bool

fn ne(&self, __arg_0: &DisplayMode) -> bool

impl Eq for DisplayMode

impl Clone for DisplayMode

fn clone(&self) -> DisplayMode

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

impl Copy for DisplayMode