FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GenericTextRunProperties

    struct · ferroui-base · v0.5.0

    struct GenericTextRunProperties
    

    Generic implementation of TextRunProperties.

    View source

    Members

    DEFAULT_FONT_RENDERING_EM_SIZE

    const DEFAULT_FONT_RENDERING_EM_SIZE: f64
    

    Source

    new

    fn new(typeface: Typeface) -> Self
    

    Creates properties for a typeface with the default em size (12) and nothing else set.

    Source

    with_font_size

    fn with_font_size(typeface: Typeface, font_rendering_em_size: f64) -> Self
    

    Creates properties for a typeface and em size.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • TextRunProperties

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.