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§
source§impl 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§
source§impl Clone for DisplayMode
impl Clone for DisplayMode
source§fn clone(&self) -> DisplayMode
fn clone(&self) -> DisplayMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DisplayMode
impl Debug for DisplayMode
source§impl Hash for DisplayMode
impl Hash for DisplayMode
source§impl PartialEq for DisplayMode
impl PartialEq for DisplayMode
source§fn eq(&self, other: &DisplayMode) -> bool
fn eq(&self, other: &DisplayMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more