FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SimpleGlyph

    struct · ferroui-base · v0.5.0

    struct SimpleGlyph<'a>
    

    A decoded simple (non-composite) glyph outline.

    The default value is the empty outline, which is also what malformed or truncated glyph data decodes to.

    View source

    Members

    end_pts_of_contours

    fn end_pts_of_contours(self: &Self) -> &[u16]
    

    Source

    instructions

    fn instructions(self: &Self) -> &'a [u8]
    

    Source

    flags

    fn flags(self: &Self) -> &[GlyphFlag]
    

    Source

    x_coordinates

    fn x_coordinates(self: &Self) -> &[i16]
    

    Source

    y_coordinates

    fn y_coordinates(self: &Self) -> &[i16]
    

    Source

    create

    fn create(data: &'a [u8], number_of_contours: i32) -> SimpleGlyph<'a>
    

    Decodes the glyph body that follows the 10 byte glyph header.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • Default

    Availability

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