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.
Members
from_clip
fn from_clip(clip: &Rc<CompositionClip>) -> Option<GeometricClip>
The handle of clip as a geometric clip, if it is one.
geometry
fn geometry(self: &Self) -> Option<Rc<CompositionGeometry>>
The geometry whose inside stays visible.
set_geometry
fn set_geometry(self: &Self, value: Option<Rc<CompositionGeometry>>)
view_box
fn view_box(self: &Self) -> Option<Rc<CompositionViewBox>>
The area of the geometry coordinates mapped onto the visual.
set_view_box
fn set_view_box(self: &Self, value: Option<Rc<CompositionViewBox>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.