[−][src]Struct azul_core::window::WindowState
State, size, etc of the window, for comparing to the last frame
Fields
title: String
Current title of the window
size: WindowSize
Size of the window + max width / max height: 800 x 600 by default
position: Option<PhysicalPosition<u32>>
The x and y position, or None to let the WM decide where to put the window (default)
flags: WindowFlags
Flags such as whether the window is minimized / maximized, fullscreen, etc.
debug_state: DebugState
Mostly used for debugging, shows WebRender-builtin graphs on the screen. Used for performance monitoring and displaying frame times (rendering-only).
keyboard_state: KeyboardState
Current keyboard state - NOTE: mutating this field (currently) does nothing (doesn't get synchronized with OS-level window)!
mouse_state: MouseState
Current mouse state
ime_position: Option<LogicalPosition>
Sets location of IME candidate box in client area coordinates relative to the top left of the window.
platform_specific_options: PlatformSpecificOptions
Window options that can only be set on a certain platform
(WindowsWindowOptions
/ LinuxWindowOptions
/ MacWindowOptions
).
css: Css
The style of this window
Implementations
impl WindowState
[src]
pub fn new(css: Css) -> Self
[src]
Creates a new, default WindowState
with the given CSS style
pub fn with_css(self, css: Css) -> Self
[src]
Same as WindowState::new
but to be used as a builder method
pub fn get_mouse_state(&self) -> &MouseState
[src]
Returns the current keyboard keyboard state. We don't want the library user to be able to modify this state, only to read it.
pub fn get_keyboard_state(&self) -> &KeyboardState
[src]
Returns the current windows mouse state. We don't want the library user to be able to modify this state, only to read it.
pub fn get_physical_size(&self) -> (usize, usize)
[src]
Returns the physical (width, height) in pixel of this window
pub fn get_hidpi_factor(&self) -> f32
[src]
Returns the current HiDPI factor for this window.
Trait Implementations
impl Clone for WindowState
[src]
fn clone(&self) -> WindowState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WindowState
[src]
impl Default for WindowState
[src]
impl From<FullWindowState> for WindowState
[src]
fn from(full_window_state: FullWindowState) -> WindowState
[src]
impl From<WindowState> for FullWindowState
[src]
fn from(window_state: WindowState) -> FullWindowState
[src]
Creates a FullWindowState from a regular WindowState, fills non-available fields with their default values
impl PartialEq<WindowState> for WindowState
[src]
fn eq(&self, other: &WindowState) -> bool
[src]
fn ne(&self, other: &WindowState) -> bool
[src]
impl StructuralPartialEq for WindowState
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,