Struct sdl2::video::DisplayMode
[−]
[src]
pub struct DisplayMode {
pub format: u32,
pub w: i32,
pub h: i32,
pub refresh_rate: i32,
}Fields
format: u32
w: i32
h: i32
refresh_rate: i32
Methods
impl DisplayMode[src]
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
impl Debug for DisplayMode[src]
impl Hash for DisplayMode[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for DisplayMode[src]
fn eq(&self, __arg_0: &DisplayMode) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &DisplayMode) -> bool
This method tests for !=.
impl Eq for DisplayMode[src]
impl Clone for DisplayMode[src]
fn clone(&self) -> DisplayMode
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