pub struct WindowInsets {
pub start: u32,
pub end: u32,
pub top: u32,
}Expand description
Safe-area insets reserved for native window controls.
Fields§
§start: u32Leading safe inset in CSS pixels.
end: u32Trailing safe inset in CSS pixels.
top: u32Top safe inset in CSS pixels.
Implementations§
Source§impl WindowInsets
impl WindowInsets
Sourcepub const fn for_style(style: &TitlebarStyle, platform: DesktopPlatform) -> Self
pub const fn for_style(style: &TitlebarStyle, platform: DesktopPlatform) -> Self
Calculate native control insets for a style and platform.
Trait Implementations§
Source§impl Clone for WindowInsets
impl Clone for WindowInsets
impl Copy for WindowInsets
Source§impl Debug for WindowInsets
impl Debug for WindowInsets
Source§impl Default for WindowInsets
impl Default for WindowInsets
impl Eq for WindowInsets
Source§impl PartialEq for WindowInsets
impl PartialEq for WindowInsets
impl StructuralPartialEq for WindowInsets
Auto Trait Implementations§
impl Freeze for WindowInsets
impl RefUnwindSafe for WindowInsets
impl Send for WindowInsets
impl Sync for WindowInsets
impl Unpin for WindowInsets
impl UnsafeUnpin for WindowInsets
impl UnwindSafe for WindowInsets
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