pub struct SafeArea {
pub top: f64,
pub right: f64,
pub bottom: f64,
pub left: f64,
}Expand description
Margins kept clear of platform UI, as fractions of the output width (left, right) and height (top, bottom).
Fields§
§top: f64§right: f64§bottom: f64§left: f64Implementations§
Source§impl SafeArea
impl SafeArea
Sourcepub const REELS: Self
pub const REELS: Self
Instagram Reels, TikTok and Shorts at 1080x1920: status and header at the top (~220 px),
caption, audio and buttons at the bottom (~420 px), the action column on the right.
Trait Implementations§
impl Copy for SafeArea
impl StructuralPartialEq for SafeArea
Auto Trait Implementations§
impl Freeze for SafeArea
impl RefUnwindSafe for SafeArea
impl Send for SafeArea
impl Sync for SafeArea
impl Unpin for SafeArea
impl UnsafeUnpin for SafeArea
impl UnwindSafe for SafeArea
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