pub enum WindowChrome {
Standard,
Overlay,
Frameless,
}Expand description
The frame a window wears (docs/window-chrome.md), set once when it opens.
Variants§
Standard
The platform’s title bar and frame.
Overlay
The content runs to the window’s top edge, under the title bar, and the platform’s own
window controls (close, minimize, zoom) stay where they are. For a custom title bar: the
backend reports the bar’s height as the window’s safe-area top inset (day::safe_area()),
so the app pads its content by it and paints its background under it. Mark the draggable
part with .window_drag_region(). Cap::OverlayTitleBar; where unsupported the window
keeps its standard bar.
Frameless
No title bar and no frame: a splash screen, a heads-up panel, a borderless utility. The
window still resizes from its edges when resizable; mark the part that moves it with
.window_drag_region(). Cap::FramelessWindow; where unsupported the window keeps its
standard frame.
Trait Implementations§
Source§impl Clone for WindowChrome
impl Clone for WindowChrome
Source§fn clone(&self) -> WindowChrome
fn clone(&self) -> WindowChrome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WindowChrome
Source§impl Debug for WindowChrome
impl Debug for WindowChrome
Source§impl Default for WindowChrome
impl Default for WindowChrome
Source§fn default() -> WindowChrome
fn default() -> WindowChrome
impl Eq for WindowChrome
Source§impl Hash for WindowChrome
impl Hash 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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more