pub enum ControlSize {
Small,
Medium,
Large,
}Expand description
Contextual interface-control sizing.
Unlike ThemeDensity, which is retained as the legacy global theme API,
control size is intended to be chosen for the interface being designed:
small for dense toolbars and configuration surfaces, medium for standard
controls, and large for hero actions or focused overlays. It changes
control geometry and typography while leaving the independent text-scale
ramp unchanged.
Variants§
Trait Implementations§
Source§impl Clone for ControlSize
impl Clone for ControlSize
impl Copy for ControlSize
Source§impl Debug for ControlSize
impl Debug for ControlSize
Source§impl Default for ControlSize
impl Default for ControlSize
impl Eq for ControlSize
Source§impl PartialEq for ControlSize
impl PartialEq for ControlSize
impl StructuralPartialEq for ControlSize
Auto Trait Implementations§
impl Forget for ControlSize
impl Freeze for ControlSize
impl Move for ControlSize
impl RefUnwindSafe for ControlSize
impl Send for ControlSize
impl Sync for ControlSize
impl Unpin for ControlSize
impl UnsafeUnpin for ControlSize
impl UnwindSafe for ControlSize
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