pub struct ShellViewportMetrics { /* private fields */ }Expand description
Immutable input snapshot describing live viewport dimensions, safe-area insets, and shell visibility flags.
Implementations§
Source§impl ShellViewportMetrics
impl ShellViewportMetrics
pub fn get_viewport_width(&self) -> f32
pub fn get_mut_viewport_width(&mut self) -> &mut f32
pub fn set_viewport_width(&mut self, val: f32) -> &mut Self
pub fn get_viewport_height(&self) -> f32
pub fn get_mut_viewport_height(&mut self) -> &mut f32
pub fn set_viewport_height(&mut self, val: f32) -> &mut Self
pub fn get_safe_area(&self) -> SafeAreaInsets
pub fn get_mut_safe_area(&mut self) -> &mut SafeAreaInsets
pub fn set_safe_area(&mut self, val: SafeAreaInsets) -> &mut Self
pub fn get_is_fullscreen(&self) -> bool
pub fn get_mut_is_fullscreen(&mut self) -> &mut bool
pub fn set_is_fullscreen(&mut self, val: bool) -> &mut Self
pub fn get_is_compact_bp(&self) -> bool
pub fn get_mut_is_compact_bp(&mut self) -> &mut bool
pub fn set_is_compact_bp(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for ShellViewportMetrics
impl Clone for ShellViewportMetrics
impl Copy for ShellViewportMetrics
Source§impl Debug for ShellViewportMetrics
impl Debug for ShellViewportMetrics
Source§impl Default for ShellViewportMetrics
impl Default for ShellViewportMetrics
Source§impl PartialEq for ShellViewportMetrics
impl PartialEq for ShellViewportMetrics
impl StructuralPartialEq for ShellViewportMetrics
Auto Trait Implementations§
impl Forget for ShellViewportMetrics
impl Freeze for ShellViewportMetrics
impl Move for ShellViewportMetrics
impl RefUnwindSafe for ShellViewportMetrics
impl Send for ShellViewportMetrics
impl Sync for ShellViewportMetrics
impl Unpin for ShellViewportMetrics
impl UnsafeUnpin for ShellViewportMetrics
impl UnwindSafe for ShellViewportMetrics
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