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: WindowFormat
A format of the window.
context_kind: WindowContextKind
A kind of render context of the window.
Whether the window is hidden.
borderless: bool
Whether the window is borderless.
resizable: bool
Whether the window is resizable.
input_grabbed: bool
Whether the window is grabbed the input.
on_focus: bool
Whether the window is on focus.
on_mouse: bool
Whether the window is on the mouse.
foreign: bool
Whether the window comes from the foreign.
allow_high_dpi: bool
Whether the window allows high dpi.
mouse_capture: bool
Whether 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