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<WindowState> for WindowState
impl PartialEq<WindowState> 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 ==
.