#[repr(u16)]pub enum WindowHeightClass {
Compact = 0,
Medium = 1,
Expanded = 2,
}Variants§
Implementations§
Source§impl WindowHeightClass
impl WindowHeightClass
Sourcepub const MEDIUM_MIN_HEIGHT_DP: f32 = 480.0
pub const MEDIUM_MIN_HEIGHT_DP: f32 = 480.0
The height in dp at which Medium begins, and the height at which Expanded does.
The same published table the width boundaries came from, so a layout that folds when it runs out of vertical room folds at the height Compose’s own components treat as short.
pub const EXPANDED_MIN_HEIGHT_DP: f32 = 900.0
Sourcepub fn from_height_dp(height_dp: f32) -> Self
pub fn from_height_dp(height_dp: f32) -> Self
The class a window of this height belongs to. Width does not take part.
Trait Implementations§
Source§impl Clone for WindowHeightClass
impl Clone for WindowHeightClass
impl Copy for WindowHeightClass
Source§impl Debug for WindowHeightClass
impl Debug for WindowHeightClass
impl Eq for WindowHeightClass
Source§impl From<WindowHeightClass> for u16
impl From<WindowHeightClass> for u16
Source§fn from(value: WindowHeightClass) -> Self
fn from(value: WindowHeightClass) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WindowHeightClass
impl PartialEq for WindowHeightClass
impl StructuralPartialEq for WindowHeightClass
Auto Trait Implementations§
impl Freeze for WindowHeightClass
impl RefUnwindSafe for WindowHeightClass
impl Send for WindowHeightClass
impl Sync for WindowHeightClass
impl Unpin for WindowHeightClass
impl UnsafeUnpin for WindowHeightClass
impl UnwindSafe for WindowHeightClass
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