pub enum WindowState {
Normal,
Minimized,
Maximized,
Fullscreen,
}Expand description
How a window is shown (docs/windows.md “Window properties”): what the window’s state()
signal holds and what WindowChange::State asks for.
Variants§
Normal
On screen at its own size: neither minimized, maximized nor fullscreen.
Minimized
Minimized to the Dock, taskbar or shelf. Cap::WindowStates.
Maximized
Zoomed to fill the screen’s work area, keeping its chrome. Cap::WindowStates.
Fullscreen
Covering the whole screen with no window chrome; on a phone, the system bars hidden.
Cap::WindowFullscreen.
Implementations§
Source§impl WindowState
impl WindowState
Sourcepub const fn code(self) -> i32
pub const fn code(self) -> i32
The wire code of bridge::BridgeKind::WindowStateChanged.
Sourcepub const fn from_code(code: i32) -> WindowState
pub const fn from_code(code: i32) -> WindowState
The state a wire code names; an unknown code reads as Normal.
Trait Implementations§
Source§impl Clone for WindowState
impl Clone for WindowState
Source§fn clone(&self) -> WindowState
fn clone(&self) -> WindowState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowState
Source§impl Debug for WindowState
impl Debug for WindowState
Source§impl Default for WindowState
impl Default for WindowState
Source§fn default() -> WindowState
fn default() -> WindowState
Returns the “default value” for a type. Read more
impl Eq for WindowState
Source§impl Hash for WindowState
impl Hash for WindowState
Source§impl PartialEq for WindowState
impl PartialEq for WindowState
impl StructuralPartialEq for WindowState
Auto Trait Implementations§
impl Freeze for WindowState
impl RefUnwindSafe for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Unpin for WindowState
impl UnsafeUnpin 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