pub struct WindowSafeArea {
pub top: f32,
pub leading: f32,
pub trailing: f32,
}Expand description
Insets in dp needed to avoid the window controls.
The controls are the operating system’s, whatever design system the application chose,
so which side is non-zero follows the platform: leading on macOS, where the system
draws its traffic lights, and trailing on Windows (three 46 dp buttons, 138 dp) and on
a Linux window whose buttons the Renderer draws (the desktop’s own set). top is the
caption’s height. All three are zero where the window has no caption to share.
Fields§
§top: f32§leading: f32§trailing: f32Trait Implementations§
Source§impl Clone for WindowSafeArea
impl Clone for WindowSafeArea
impl Copy for WindowSafeArea
Source§impl Debug for WindowSafeArea
impl Debug for WindowSafeArea
Source§impl Default for WindowSafeArea
impl Default for WindowSafeArea
Source§impl PartialEq for WindowSafeArea
impl PartialEq for WindowSafeArea
impl StructuralPartialEq for WindowSafeArea
Auto Trait Implementations§
impl Forget for WindowSafeArea
impl Freeze for WindowSafeArea
impl Move for WindowSafeArea
impl RefUnwindSafe for WindowSafeArea
impl Send for WindowSafeArea
impl Sync for WindowSafeArea
impl Unpin for WindowSafeArea
impl UnsafeUnpin for WindowSafeArea
impl UnwindSafe for WindowSafeArea
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