FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PretextShapedRun

    struct · ferroui-pretext-contracts · v0.5.0

    struct PretextShapedRun
    

    Immutable positioned glyphs and the font runs that produced them.

    View source

    Members

    new

    fn new(kind: PretextGlyphRunKind, glyphs: Vec<PretextShapedGlyph>, font_runs: Vec<PretextShapedFontRun>, advance_x: f64, advance_y: f64) -> Self
    

    Source

    kind

    fn kind(self: &Self) -> PretextGlyphRunKind
    

    Source

    glyphs

    fn glyphs(self: &Self) -> &[PretextShapedGlyph]
    

    Source

    font_runs

    fn font_runs(self: &Self) -> &[PretextShapedFontRun]
    

    Source

    advance_x

    fn advance_x(self: &Self) -> f64
    

    Source

    advance_y

    fn advance_y(self: &Self) -> f64
    

    Source

    has_missing_glyphs

    fn has_missing_glyphs(self: &Self) -> bool
    

    Source

    is_shaped

    fn is_shaped(self: &Self) -> bool
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq

    Availability

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