pub struct RoundingTokens {
pub none: f32,
pub xs: f32,
pub sm: f32,
pub md: f32,
pub lg: f32,
pub xl: f32,
pub pill: f32,
pub button: f32,
pub panel: f32,
pub dialog: f32,
}Expand description
Corner rounding tokens for consistent border-radius across components.
Ranges from none (0px) through pill (fully rounded). Semantic aliases
like button, panel, dialog, input map to appropriate scale values.
Fields§
§none: f32None, in egui logical points.
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.
pill: f32Pill, in egui logical points.
Button, in egui logical points.
panel: f32Panel, in egui logical points.
dialog: f32Dialog, in egui logical points.
Trait Implementations§
Source§impl Clone for RoundingTokens
impl Clone for RoundingTokens
Source§fn clone(&self) -> RoundingTokens
fn clone(&self) -> RoundingTokens
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 RoundingTokens
impl RefUnwindSafe for RoundingTokens
impl Send for RoundingTokens
impl Sync for RoundingTokens
impl Unpin for RoundingTokens
impl UnsafeUnpin for RoundingTokens
impl UnwindSafe for RoundingTokens
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