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
impl Copy for DisplayMode
impl Eq for DisplayMode
impl StructuralPartialEq for DisplayMode
Auto Trait Implementations§
impl Freeze for DisplayMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)