FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GeometricClip

    struct · ferroui-base · v0.5.0

    struct GeometricClip
    

    A clip that leaves visible the inside of a geometry (WinUI Microsoft.UI.Composition.GeometricClip), in the coordinates of the visual it is set on, or of its view_box when it has one: the view box maps the geometry onto the size of the visual as for a shape visual. The transform of the clip applies after the view box. A change of the geometry (its trimming and animations included) or of the view box changes the clip.

    Deviation (winui-composition.md): a geometric clip without a geometry clips nothing; the trimming of the geometry applies to the clip.

    View source

    Members

    from_clip

    fn from_clip(clip: &Rc<CompositionClip>) -> Option<GeometricClip>
    

    The handle of clip as a geometric clip, if it is one.

    Source

    geometry

    fn geometry(self: &Self) -> Option<Rc<CompositionGeometry>>
    

    The geometry whose inside stays visible.

    Source

    set_geometry

    fn set_geometry(self: &Self, value: Option<Rc<CompositionGeometry>>)
    

    Source

    view_box

    fn view_box(self: &Self) -> Option<Rc<CompositionViewBox>>
    

    The area of the geometry coordinates mapped onto the visual.

    Source

    set_view_box

    fn set_view_box(self: &Self, value: Option<Rc<CompositionViewBox>>)
    

    Source

    Trait implementations

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

    Availability

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