pub struct TypographyPreset {
pub intent: TextIntent,
pub family: UiTextFamily,
pub size: UiTextSize,
}Fields§
§intent: TextIntent§family: UiTextFamily§size: UiTextSizeImplementations§
Source§impl TypographyPreset
impl TypographyPreset
pub const fn new( intent: TextIntent, family: UiTextFamily, size: UiTextSize, ) -> Self
pub const fn control_ui(size: UiTextSize) -> Self
pub const fn content_ui(size: UiTextSize) -> Self
pub const fn control_monospace(size: UiTextSize) -> Self
pub const fn content_monospace(size: UiTextSize) -> Self
pub fn resolve(self, theme: &impl ThemeTokenRead) -> TextStyle
Trait Implementations§
Source§impl Clone for TypographyPreset
impl Clone for TypographyPreset
Source§fn clone(&self) -> TypographyPreset
fn clone(&self) -> TypographyPreset
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 TypographyPreset
impl Debug for TypographyPreset
Source§impl PartialEq for TypographyPreset
impl PartialEq for TypographyPreset
impl Copy for TypographyPreset
impl Eq for TypographyPreset
impl StructuralPartialEq for TypographyPreset
Auto Trait Implementations§
impl Freeze for TypographyPreset
impl RefUnwindSafe for TypographyPreset
impl Send for TypographyPreset
impl Sync for TypographyPreset
impl Unpin for TypographyPreset
impl UnsafeUnpin for TypographyPreset
impl UnwindSafe for TypographyPreset
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