pub struct WindowInsets {
pub safe_area: EdgeInsets,
pub ime: EdgeInsets,
}Expand description
Insets needed to keep content clear of system UI and the on-screen keyboard.
Fields§
§safe_area: EdgeInsets§ime: EdgeInsetsImplementations§
Source§impl WindowInsets
impl WindowInsets
Sourcepub fn combined(self) -> EdgeInsets
pub fn combined(self) -> EdgeInsets
Combines overlapping insets by taking the largest obstruction on each edge.
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
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