Enum comfy_wgpu::egui::FontSelection
source · pub enum FontSelection {
Default,
FontId(FontId),
Style(TextStyle),
}Variants§
Default
Default text style - will use TextStyle::Body, unless
Style::override_font_id or Style::override_text_style is set.
FontId(FontId)
Directly select size and font family
Style(TextStyle)
Use a TextStyle to look up the FontId in Style::text_styles.
Implementations§
Trait Implementations§
source§impl Default for FontSelection
impl Default for FontSelection
source§fn default() -> FontSelection
fn default() -> FontSelection
Returns the “default value” for a type. Read more
source§impl From<FontId> for FontSelection
impl From<FontId> for FontSelection
source§fn from(font_id: FontId) -> FontSelection
fn from(font_id: FontId) -> FontSelection
Converts to this type from the input type.
source§impl From<TextStyle> for FontSelection
impl From<TextStyle> for FontSelection
source§fn from(text_style: TextStyle) -> FontSelection
fn from(text_style: TextStyle) -> FontSelection
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FontSelection
impl Send for FontSelection
impl Sync for FontSelection
impl Unpin for FontSelection
impl UnwindSafe for FontSelection
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