Struct sdl2::video::DisplayMode
source · 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
Implementations
sourceimpl DisplayMode
impl DisplayMode
pub fn new(
format: PixelFormatEnum,
w: i32,
h: i32,
refresh_rate: i32
) -> DisplayMode
pub fn from_ll(raw: &SDL_DisplayMode) -> DisplayMode
pub fn to_ll(&self) -> SDL_DisplayMode
Trait Implementations
sourceimpl Clone for DisplayMode
impl Clone for DisplayMode
sourcefn clone(&self) -> DisplayMode
fn clone(&self) -> DisplayMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DisplayMode
impl Debug for DisplayMode
sourceimpl Hash for DisplayMode
impl Hash for DisplayMode
sourceimpl PartialEq<DisplayMode> for DisplayMode
impl PartialEq<DisplayMode> for DisplayMode
sourcefn eq(&self, other: &DisplayMode) -> bool
fn eq(&self, other: &DisplayMode) -> bool
impl Copy for DisplayMode
impl Eq for DisplayMode
impl StructuralEq for DisplayMode
impl StructuralPartialEq for DisplayMode
Auto Trait Implementations
impl RefUnwindSafe for DisplayMode
impl Send for DisplayMode
impl Sync for DisplayMode
impl Unpin for DisplayMode
impl UnwindSafe for DisplayMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more