pub enum WindowChange {
Show 14 variants
State(WindowState),
ContentProtected(bool),
Frame {
origin: Option<Point>,
size: Option<Size>,
},
Limits {
min: Option<Size>,
max: Option<Size>,
},
Level(WindowLevel),
OnAllWorkspaces(bool),
SkipTaskbar(bool),
Resizable(bool),
Minimizable(bool),
Maximizable(bool),
Closable(bool),
Visible(bool),
Appearance(Option<bool>),
RequestAttention(Attention),
}Expand description
One change to one window (docs/windows.md “Window properties”), carried by
Toolkit::apply_window. Each variant names the Cap that reports whether the running
toolkit makes it.
Variants§
State(WindowState)
Minimize, zoom, take fullscreen, or return to normal. Cap::WindowStates for the
first two, Cap::WindowFullscreen for fullscreen. The outcome comes back as
Event::WindowStateChanged.
ContentProtected(bool)
Keep the window’s content out of screenshots, recordings and screen sharing.
Cap::ContentProtection.
Frame
Move and/or resize. origin is the outer frame’s top-left corner in points on the
desktop’s coordinate space (top-left origin, Cap::WindowPosition); size is the size Day
lays the content out at, in points, the same size WindowResized reports
(Cap::WindowGeometry): the backend adds its own chrome around it.
Limits
The content size the user can resize the window to. None lifts that bound.
Cap::WindowGeometry.
Level(WindowLevel)
Stacking against other apps’ windows. Cap::WindowLevel.
OnAllWorkspaces(bool)
Show the window on every virtual desktop / Space. Cap::WindowLevel.
SkipTaskbar(bool)
Leave the window out of the taskbar and the window switcher. Cap::WindowLevel.
Resizable(bool)
Whether the user can resize the window. Cap::WindowGeometry.
Minimizable(bool)
Whether the window offers a minimize control. Cap::WindowStates.
Maximizable(bool)
Whether the window offers a maximize / zoom control. Cap::WindowStates.
Closable(bool)
Whether the window offers a close control. Cap::WindowStates.
Visible(bool)
Hide the window without closing it, or show it again. Cap::WindowStates.
Appearance(Option<bool>)
This window’s light/dark override over the app-wide Toolkit::set_appearance.
Cap::WindowAppearance.
RequestAttention(Attention)
Bounce the Dock icon, flash the taskbar button. Cap::RequestAttention.
Trait Implementations§
Source§impl Clone for WindowChange
impl Clone for WindowChange
Source§fn clone(&self) -> WindowChange
fn clone(&self) -> WindowChange
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more