FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionPath

    struct · ferroui-base · v0.5.0

    struct CompositionPath
    

    The path of a CompositionPathGeometry (WinUI Microsoft.UI.Composition.CompositionPath): an immutable platform geometry, made from a FerroUI Geometry (a StreamGeometry, a PathGeometry, ...) or from a string of path data.

    Deviation (winui-composition.md): WinUI makes a path from an IGeometrySource2D (a Win2D geometry); here the source is a FerroUI geometry, and the path keeps the platform geometry it had when the path was made.

    View source

    Members

    from_geometry

    fn from_geometry(geometry: &Geometry) -> Option<CompositionPath>
    

    The path of geometry, as it is now; None when the geometry has no platform geometry.

    Source

    parse

    fn parse(data: &str) -> Result<CompositionPath, FormatError>
    

    The path described by a string of path data (the mini-language of Geometry::parse).

    Source

    bounds

    fn bounds(self: &Self) -> Rect
    

    The bounds of the path.

    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

    Availability

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