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.
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.
parse
fn parse(data: &str) -> Result<CompositionPath, FormatError>
The path described by a string of path data (the mini-language of
Geometry::parse).
bounds
fn bounds(self: &Self) -> Rect
The bounds of the path.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.