pub struct DeviceInsets {
pub safe: Insets,
pub keyboard: f32,
}Expand description
The areas of the screen a device’s system keeps, in one orientation.
Fields§
§safe: InsetsWhat the status bar, the cutout and the home indicator take, keyboard down.
keyboard: f32How high the soft keyboard comes, measured from the bottom edge of the screen (so including the home indicator it covers).
Trait Implementations§
Source§impl Clone for DeviceInsets
impl Clone for DeviceInsets
impl Copy for DeviceInsets
Source§impl Debug for DeviceInsets
impl Debug for DeviceInsets
Source§impl PartialEq for DeviceInsets
impl PartialEq for DeviceInsets
impl StructuralPartialEq for DeviceInsets
Auto Trait Implementations§
impl Freeze for DeviceInsets
impl RefUnwindSafe for DeviceInsets
impl Send for DeviceInsets
impl Sync for DeviceInsets
impl Unpin for DeviceInsets
impl UnsafeUnpin for DeviceInsets
impl UnwindSafe for DeviceInsets
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