#[repr(i32)]pub enum WindowChrome {
System = 0,
Full = 1,
}Expand description
Window decoration for SurfaceKind::Window.
Full extends the page to the window edge while keeping the system
minimize, maximize, resize, and drag affordances. The runtime owns a native
drag strip across the top and publishes its height to the page, so a page
that does nothing to opt in still cannot trap the user — which is what sank
the earlier edge-to-edge attempt.
Variants§
Implementations§
Source§impl WindowChrome
impl WindowChrome
Sourcepub const FULL_DRAG_STRIP_HEIGHT: f64 = 28.0
pub const FULL_DRAG_STRIP_HEIGHT: f64 = 28.0
Logical height of the drag strip Full reserves across the top. One
number for every consumer: the runtime publishes it to the page as the
page-chrome topInset, and each platform reserves the same band —
macOS lays out a strip view, Windows hit-tests it as caption. Logical,
so a Windows hit test must scale it by the window’s DPI.
Trait Implementations§
Source§impl Clone for WindowChrome
impl Clone for WindowChrome
impl Copy for WindowChrome
Source§impl Debug for WindowChrome
impl Debug for WindowChrome
Source§impl Default for WindowChrome
impl Default for WindowChrome
impl Eq for WindowChrome
Source§impl PartialEq for WindowChrome
impl PartialEq for WindowChrome
impl StructuralPartialEq for WindowChrome
Auto Trait Implementations§
impl Freeze for WindowChrome
impl RefUnwindSafe for WindowChrome
impl Send for WindowChrome
impl Sync for WindowChrome
impl Unpin for WindowChrome
impl UnsafeUnpin for WindowChrome
impl UnwindSafe for WindowChrome
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