Struct rich_sdl2_rust::window::WindowState
source · pub struct WindowState {
pub format: WindowFormat,
pub context_kind: WindowContextKind,
pub hidden: bool,
pub borderless: bool,
pub resizable: bool,
pub input_grabbed: bool,
pub on_focus: bool,
pub on_mouse: bool,
pub foreign: bool,
pub allow_high_dpi: bool,
pub mouse_capture: bool,
}Expand description
A state of a super::Window.
Fields§
§format: WindowFormatA format of the window.
context_kind: WindowContextKindA kind of render context of the window.
Whether the window is hidden.
borderless: boolWhether the window is borderless.
resizable: boolWhether the window is resizable.
input_grabbed: boolWhether the window is grabbed the input.
on_focus: boolWhether the window is on focus.
on_mouse: boolWhether the window is on the mouse.
foreign: boolWhether the window comes from the foreign.
allow_high_dpi: boolWhether the window allows high dpi.
mouse_capture: boolWhether the window captures the mouse.
Trait Implementations§
source§impl Clone for WindowState
impl Clone for WindowState
source§fn clone(&self) -> WindowState
fn clone(&self) -> WindowState
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 WindowState
impl Debug for WindowState
source§impl PartialEq for WindowState
impl PartialEq for WindowState
source§fn eq(&self, other: &WindowState) -> bool
fn eq(&self, other: &WindowState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for WindowState
impl Eq for WindowState
impl StructuralPartialEq for WindowState
Auto Trait Implementations§
impl RefUnwindSafe for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Unpin for WindowState
impl UnwindSafe for WindowState
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