[−][src]Struct beryllium::DisplayMode
A description of a fullscreen display mode.
Fields
format: PixelFormatEnum
The screen's format
width: i32
Width, in logical units
height: i32
Height, in logical units
refresh_rate: i32
Refresh rate in Hz, or 0 if unspecified.
Methods
impl DisplayMode
[src]
pub const fn new(
format: PixelFormatEnum,
width: i32,
height: i32,
refresh_rate: i32
) -> Self
[src]
format: PixelFormatEnum,
width: i32,
height: i32,
refresh_rate: i32
) -> Self
Constructs a new display mode as specified.
This is necessary because the display mode has a hidden driver data pointer which must be initialized to null and not altered by outside users.
Trait Implementations
impl From<SDL_DisplayMode> for DisplayMode
[src]
fn from(sdl_mode: SDL_DisplayMode) -> Self
[src]
impl From<DisplayMode> for SDL_DisplayMode
[src]
fn from(mode: DisplayMode) -> Self
[src]
impl Clone for DisplayMode
[src]
fn clone(&self) -> DisplayMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for DisplayMode
[src]
impl Debug for DisplayMode
[src]
Auto Trait Implementations
impl !Send for DisplayMode
impl Unpin for DisplayMode
impl !Sync for DisplayMode
impl UnwindSafe for DisplayMode
impl RefUnwindSafe for DisplayMode
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,