pub struct Typography {
pub body: f32,
pub button: f32,
pub label: f32,
pub small: f32,
pub heading: f32,
pub monospace: f32,
}Expand description
Typography settings shared by all widgets.
Font sizes are expressed in egui points (equivalent to CSS pixels at the default zoom level).
Fields§
§body: f32Default body text size.
Button label size.
label: f32Field-label size (the text above a TextInput, for example).
small: f32Secondary text size — hints, captions, badges.
heading: f32Heading size used by Card titles.
monospace: f32Monospace size used by code-style content.
Implementations§
Source§impl Typography
impl Typography
Trait Implementations§
Source§impl Clone for Typography
impl Clone for Typography
Source§fn clone(&self) -> Typography
fn clone(&self) -> Typography
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Typography
impl Debug for Typography
Source§impl PartialEq for Typography
impl PartialEq for Typography
impl Copy for Typography
impl StructuralPartialEq for Typography
Auto Trait Implementations§
impl Freeze for Typography
impl RefUnwindSafe for Typography
impl Send for Typography
impl Sync for Typography
impl Unpin for Typography
impl UnsafeUnpin for Typography
impl UnwindSafe for Typography
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