pub enum WindowWidthSizeClass {
Compact,
Medium,
Expanded,
Large,
ExtraLarge,
}Expand description
Material’s width breakpoints, in logical pixels.
Variants§
Compact
Below 600 logical pixels.
Medium
From 600 to 840.
Expanded
From 840 to 1200.
Large
From 1200 to 1600.
ExtraLarge
From 1600.
Implementations§
Source§impl WindowWidthSizeClass
impl WindowWidthSizeClass
Sourcepub fn margin(self) -> f64
pub fn margin(self) -> f64
Material 3’s window margin at this width, in logical pixels: the space between the window’s edge, or its navigation, and the panes. 16 when Compact and 24 from Medium, from the margins of m3.material.io/foundations/layout/applying-layout/window-size-classes.
Compose leaves margins to the app; a pane takes them with Pane::margins.
Trait Implementations§
Source§impl Clone for WindowWidthSizeClass
impl Clone for WindowWidthSizeClass
impl Copy for WindowWidthSizeClass
Source§impl Debug for WindowWidthSizeClass
impl Debug for WindowWidthSizeClass
impl Eq for WindowWidthSizeClass
Source§impl Hash for WindowWidthSizeClass
impl Hash for WindowWidthSizeClass
Source§impl Ord for WindowWidthSizeClass
impl Ord for WindowWidthSizeClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WindowWidthSizeClass
impl PartialEq for WindowWidthSizeClass
Source§impl PartialOrd for WindowWidthSizeClass
impl PartialOrd for WindowWidthSizeClass
impl StructuralPartialEq for WindowWidthSizeClass
Auto Trait Implementations§
impl Forget for WindowWidthSizeClass
impl Freeze for WindowWidthSizeClass
impl Move for WindowWidthSizeClass
impl RefUnwindSafe for WindowWidthSizeClass
impl Send for WindowWidthSizeClass
impl Sync for WindowWidthSizeClass
impl Unpin for WindowWidthSizeClass
impl UnsafeUnpin for WindowWidthSizeClass
impl UnwindSafe for WindowWidthSizeClass
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.