pub struct ThemeSpacing {
pub xs: f32,
pub sm: f32,
pub md: f32,
pub lg: f32,
pub xl: f32,
}Expand description
Layout rhythm in points. Jobs, not one-off gaps.
| Token | Default | Job |
|---|---|---|
xs | 4 | Tight meta, icon+label, stacked lines in a row |
sm | 8 | Dense lists, control padding y, related captions |
md | 12 | Default egui::Spacing::item_spacing, related group |
lg | 16 | Section padding (header, pane inner) |
xl | 24 | Between groups (heading → gallery) |
Widget chrome (inner_margin, button_padding) is separate.
Fields§
§xs: f32Tight: stacked meta, icon+label.
sm: f32Dense lists and compact control padding.
md: f32Default item spacing / related group.
lg: f32Section padding.
xl: f32Space between groups.
Implementations§
Trait Implementations§
Source§impl Clone for ThemeSpacing
impl Clone for ThemeSpacing
Source§fn clone(&self) -> ThemeSpacing
fn clone(&self) -> ThemeSpacing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThemeSpacing
Source§impl Debug for ThemeSpacing
impl Debug for ThemeSpacing
Source§impl Default for ThemeSpacing
impl Default for ThemeSpacing
Source§impl PartialEq for ThemeSpacing
impl PartialEq for ThemeSpacing
impl StructuralPartialEq for ThemeSpacing
Auto Trait Implementations§
impl Freeze for ThemeSpacing
impl RefUnwindSafe for ThemeSpacing
impl Send for ThemeSpacing
impl Sync for ThemeSpacing
impl Unpin for ThemeSpacing
impl UnsafeUnpin for ThemeSpacing
impl UnwindSafe for ThemeSpacing
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
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more