FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionGeometry

    struct · ferroui-base · v0.5.0

    struct CompositionGeometry
    

    The geometry of a sprite shape or a geometric clip (WinUI Microsoft.UI.Composition.CompositionGeometry), with the animatable trimming of its outline: TrimStart and TrimEnd (fractions of the length of the outline, default 0 and 1) and TrimOffset (added to both, wrapping around the outline).

    View source

    Members

    compositor

    fn compositor(self: &Self) -> &Rc<Compositor>
    

    Source

    object

    fn object(self: &Self) -> &CompositionObject
    

    The embedded CompositionObject.

    Source

    is_disposed

    fn is_disposed(self: &Self) -> bool
    

    Source

    dispose

    fn dispose(self: &Self)
    

    Source

    type_name

    fn type_name(self: &Self) -> &'static str
    

    The name of the concrete class, for messages.

    Source

    trim_end

    fn trim_end(self: &Self) -> f32
    

    Where the drawn part of the outline ends, as a fraction of its length (default 1).

    Source

    set_trim_end

    fn set_trim_end(self: &Self, value: f32)
    

    Source

    trim_offset

    fn trim_offset(self: &Self) -> f32
    

    How far along the outline both trim points are moved, as a fraction of its length; the drawn part wraps around the start of the outline.

    Source

    set_trim_offset

    fn set_trim_offset(self: &Self, value: f32)
    

    Source

    trim_start

    fn trim_start(self: &Self) -> f32
    

    Where the drawn part of the outline starts, as a fraction of its length (default 0).

    Source

    set_trim_start

    fn set_trim_start(self: &Self, value: f32)
    

    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
    • CompositionGeometryHooks
    • CompositionRectangleGeometryHooks
    • CompositionRoundedRectangleGeometryHooks
    • CompositionEllipseGeometryHooks
    • CompositionLineGeometryHooks
    • CompositionPathGeometryHooks
    • IRegisterForSerialization
    • ICompositionObjectHost
    • ICompositionObjectAnimations
    • AsCompositionObject
    • ICompositionObject
    • ICompositorSerializable

    Availability

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