Enum storm::graphics::DisplayMode
source · [−]pub enum DisplayMode {
Windowed {
width: i32,
height: i32,
resizable: bool,
},
WindowedFullscreen,
Fullscreen,
}
Expand description
Enumeration for window display options.
Variants
Windowed
Fields
width: i32
The height of the window.
height: i32
The height of the window.
resizable: bool
If the window is resizable.
Normal windowed mode.
WindowedFullscreen
For “fake” fullscreen that takes the size of the desktop.
Fullscreen
For “real” fullscreen with a videomode change.
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 more
sourceimpl Debug for DisplayMode
impl Debug for DisplayMode
sourceimpl PartialEq<DisplayMode> for DisplayMode
impl PartialEq<DisplayMode> for DisplayMode
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DisplayMode) -> bool
fn ne(&self, other: &DisplayMode) -> bool
This method tests for !=
.
impl Copy 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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