pub struct SpacingTokens {
pub xs: f32,
pub sm: f32,
pub md: f32,
pub lg: f32,
pub xl: f32,
pub xxl: f32,
pub xxxl: f32,
pub hairline: f32,
pub section_lg: f32,
pub panel_gap: f32,
}Expand description
Spacing tokens defining consistent gaps, padding, and margins.
Values are in egui logical points. Use panel_gap and section_lg
for panel and section spacing, or the graduated sizes for control layout.
Fields§
§xs: f32Extra small, in egui logical points.
sm: f32Small, in egui logical points.
md: f32Medium, in egui logical points.
lg: f32Large, in egui logical points.
xl: f32Extra large, in egui logical points.
xxl: f32Double extra large, in egui logical points.
xxxl: f32Triple extra large, in egui logical points.
hairline: f32Hairline, in egui logical points.
section_lg: f32Section large, in egui logical points.
panel_gap: f32Panel gap, in egui logical points.
Trait Implementations§
Source§impl Clone for SpacingTokens
impl Clone for SpacingTokens
Source§fn clone(&self) -> SpacingTokens
fn clone(&self) -> SpacingTokens
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 moreAuto Trait Implementations§
impl Freeze for SpacingTokens
impl RefUnwindSafe for SpacingTokens
impl Send for SpacingTokens
impl Sync for SpacingTokens
impl Unpin for SpacingTokens
impl UnsafeUnpin for SpacingTokens
impl UnwindSafe for SpacingTokens
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