pub struct WindowInsets {
pub top: f32,
pub bottom: f32,
pub left: f32,
pub right: f32,
pub ime_bottom: f32,
}Expand description
System window insets (status bar, navigation bar, IME keyboard, etc.)
Fields§
§top: f32§bottom: f32§left: f32§right: f32§ime_bottom: f32Soft keyboard (IME) inset from bottom of screen. Set by platform runner
when the keyboard opens/closes. Used by imePadding() modifier.
Trait Implementations§
Source§impl Clone for WindowInsets
impl Clone for WindowInsets
Source§fn clone(&self) -> WindowInsets
fn clone(&self) -> WindowInsets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowInsets
Source§impl Debug for WindowInsets
impl Debug for WindowInsets
Source§impl Default for WindowInsets
impl Default for WindowInsets
Source§fn default() -> WindowInsets
fn default() -> WindowInsets
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowInsets
impl PartialEq for WindowInsets
Source§fn eq(&self, other: &WindowInsets) -> bool
fn eq(&self, other: &WindowInsets) -> bool
Tests for
self and other values to be equal, and is used by ==.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