pub struct SafeAreaInsets { /* private fields */ }Expand description
Safe-area insets in logical pixels (iOS notch/Dynamic Island, iPadOS Stage Manager, Android cutouts, Web immersive).
Implementations§
Source§impl SafeAreaInsets
Conversion and helper methods for SafeAreaInsets.
impl SafeAreaInsets
Conversion and helper methods for SafeAreaInsets.
Source§impl SafeAreaInsets
impl SafeAreaInsets
pub fn get_top(&self) -> f32
pub fn get_mut_top(&mut self) -> &mut f32
pub fn set_top(&mut self, val: f32) -> &mut Self
pub fn get_right(&self) -> f32
pub fn get_mut_right(&mut self) -> &mut f32
pub fn set_right(&mut self, val: f32) -> &mut Self
pub fn get_bottom(&self) -> f32
pub fn get_mut_bottom(&mut self) -> &mut f32
pub fn set_bottom(&mut self, val: f32) -> &mut Self
pub fn get_left(&self) -> f32
pub fn get_mut_left(&mut self) -> &mut f32
pub fn set_left(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for SafeAreaInsets
impl Clone for SafeAreaInsets
impl Copy for SafeAreaInsets
Source§impl Debug for SafeAreaInsets
impl Debug for SafeAreaInsets
Source§impl Default for SafeAreaInsets
impl Default for SafeAreaInsets
Source§impl PartialEq for SafeAreaInsets
impl PartialEq for SafeAreaInsets
impl StructuralPartialEq for SafeAreaInsets
Auto Trait Implementations§
impl Forget for SafeAreaInsets
impl Freeze for SafeAreaInsets
impl Move for SafeAreaInsets
impl RefUnwindSafe for SafeAreaInsets
impl Send for SafeAreaInsets
impl Sync for SafeAreaInsets
impl Unpin for SafeAreaInsets
impl UnsafeUnpin for SafeAreaInsets
impl UnwindSafe for SafeAreaInsets
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