GenericTextRunProperties
struct · ferroui-base · v0.5.0
struct GenericTextRunProperties
Generic implementation of TextRunProperties.
Members
DEFAULT_FONT_RENDERING_EM_SIZE
const DEFAULT_FONT_RENDERING_EM_SIZE: f64
new
fn new(typeface: Typeface) -> Self
Creates properties for a typeface with the default em size (12) and nothing else set.
with_font_size
fn with_font_size(typeface: Typeface, font_rendering_em_size: f64) -> Self
Creates properties for a typeface and em size.
with_all
fn with_all(typeface: Typeface, font_rendering_em_size: f64, text_decorations: Option<TextDecorationCollection>, foreground_brush: Option<Rc<dyn IBrush>>, background_brush: Option<Rc<dyn IBrush>>, baseline_alignment: BaselineAlignment, culture_info: Option<Locale>, font_features: Option<FontFeatureCollection>) -> Self
Creates properties with every value specified.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherTextRunProperties
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.