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).
Members
compositorobjectis_disposeddisposetype_nametrim_endset_trim_endtrim_offsetset_trim_offsettrim_startset_trim_start
compositor
fn compositor(self: &Self) -> &Rc<Compositor>
object
fn object(self: &Self) -> &CompositionObject
The embedded CompositionObject.
is_disposed
fn is_disposed(self: &Self) -> bool
dispose
fn dispose(self: &Self)
type_name
fn type_name(self: &Self) -> &'static str
The name of the concrete class, for messages.
trim_end
fn trim_end(self: &Self) -> f32
Where the drawn part of the outline ends, as a fraction of its length (default 1).
set_trim_end
fn set_trim_end(self: &Self, value: f32)
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.
set_trim_offset
fn set_trim_offset(self: &Self, value: f32)
trim_start
fn trim_start(self: &Self) -> f32
Where the drawn part of the outline starts, as a fraction of its length (default 0).
set_trim_start
fn set_trim_start(self: &Self, value: f32)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherCompositionGeometryHooksCompositionRectangleGeometryHooksCompositionRoundedRectangleGeometryHooksCompositionEllipseGeometryHooksCompositionLineGeometryHooksCompositionPathGeometryHooksIRegisterForSerializationICompositionObjectHostICompositionObjectAnimationsAsCompositionObjectICompositionObjectICompositorSerializable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.