Struct sdl2::video::DisplayMode
[−]
[src]
pub struct DisplayMode { pub format: PixelFormatEnum, pub w: i32, pub h: i32, pub refresh_rate: i32, }
Fields
format: PixelFormatEnum
w: i32
h: i32
refresh_rate: i32
Methods
impl DisplayMode
[src]
pub fn new(
format: PixelFormatEnum,
w: i32,
h: i32,
refresh_rate: i32
) -> DisplayMode
[src]
format: PixelFormatEnum,
w: i32,
h: i32,
refresh_rate: i32
) -> DisplayMode
pub fn from_ll(raw: &SDL_DisplayMode) -> DisplayMode
[src]
pub fn to_ll(&self) -> SDL_DisplayMode
[src]
Trait Implementations
impl Copy for DisplayMode
[src]
impl Clone for DisplayMode
[src]
fn clone(&self) -> DisplayMode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for DisplayMode
[src]
impl PartialEq for DisplayMode
[src]
fn eq(&self, __arg_0: &DisplayMode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DisplayMode) -> bool
[src]
This method tests for !=
.
impl Hash for DisplayMode
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more