pub enum Density {
Pointer,
Touch,
}Expand description
Which input the layout is being sized for.
A preset, not a breakpoint, and orthogonal to Surface: density decides
which step a relationship picks, the surface decides how that step lands.
Which density applies is the app’s call — GoingsOn and Balanced Breakfast
already decide it once and hang a ui-mode-* class off the result.
Variants§
Pointer
Mouse or trackpad. Resolves to the Mac OS 8 HIG’s own proportions.
Touch
Finger. Targets separate, shells tighten.
Trait Implementations§
impl Copy for Density
impl Eq for Density
impl StructuralPartialEq for Density
Auto Trait Implementations§
impl Freeze for Density
impl RefUnwindSafe for Density
impl Send for Density
impl Sync for Density
impl Unpin for Density
impl UnsafeUnpin for Density
impl UnwindSafe for Density
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