Enum rich_sdl2_rust::window::WindowFormat
source · #[non_exhaustive]pub enum WindowFormat {
Normal,
FullScreen,
FullScreenWithCurrentDesktop,
Minimized,
Maximized,
}
Expand description
A format of a super::Window
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
A normal window.
FullScreen
A full screen window.
FullScreenWithCurrentDesktop
A full screen window on the current desktop.
Minimized
A minimized window.
Maximized
A maximized window.
Trait Implementations§
source§impl Clone for WindowFormat
impl Clone for WindowFormat
source§fn clone(&self) -> WindowFormat
fn clone(&self) -> WindowFormat
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 WindowFormat
impl Debug for WindowFormat
source§impl PartialEq for WindowFormat
impl PartialEq for WindowFormat
source§fn eq(&self, other: &WindowFormat) -> bool
fn eq(&self, other: &WindowFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WindowFormat
impl Eq for WindowFormat
impl StructuralPartialEq for WindowFormat
Auto Trait Implementations§
impl RefUnwindSafe for WindowFormat
impl Send for WindowFormat
impl Sync for WindowFormat
impl Unpin for WindowFormat
impl UnwindSafe for WindowFormat
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