CompositionClip
struct · ferroui-base · v0.5.0
struct CompositionClip
A clip of a visual (WinUI Microsoft.UI.Composition.CompositionClip):
the area of the visual that stays visible, with its own animatable
transform (AnchorPoint, CenterPoint, Offset, RotationAngle,
Scale, TransformMatrix) in the space of the visual.
Deviation (winui-composition.md): AnchorPoint is relative to the size of
the visual the clip is set on; RotationAngleInDegrees is a view of
RotationAngle and cannot be the target of an animation.
Members
compositorobjectis_disposeddisposetype_nameanchor_pointset_anchor_pointcenter_pointset_center_pointoffsetset_offsetrotation_angleset_rotation_anglerotation_angle_in_degreesset_rotation_angle_in_degreesscaleset_scaletransform_matrixset_transform_matrix
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.
anchor_point
fn anchor_point(self: &Self) -> Vector
The point of the clip, relative to the size of the visual, that is
placed at offset.
set_anchor_point
fn set_anchor_point(self: &Self, value: Vector)
center_point
fn center_point(self: &Self) -> Vector
The point the clip is scaled and rotated about.
set_center_point
fn set_center_point(self: &Self, value: Vector)
offset
fn offset(self: &Self) -> Vector
The offset of the clip.
set_offset
fn set_offset(self: &Self, value: Vector)
rotation_angle
fn rotation_angle(self: &Self) -> f32
The rotation of the clip about its center point, in radians.
set_rotation_angle
fn set_rotation_angle(self: &Self, value: f32)
rotation_angle_in_degrees
fn rotation_angle_in_degrees(self: &Self) -> f32
The rotation of the clip in degrees: a view of
rotation_angle.
set_rotation_angle_in_degrees
fn set_rotation_angle_in_degrees(self: &Self, value: f32)
scale
fn scale(self: &Self) -> Vector
The scale of the clip about its center point (default (1, 1)).
set_scale
fn set_scale(self: &Self, value: Vector)
transform_matrix
fn transform_matrix(self: &Self) -> Matrix
The transform matrix of the clip (WinUI Matrix3x2).
set_transform_matrix
fn set_transform_matrix(self: &Self, value: Matrix)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherCompositionClipHooksInsetClipHooksRectangleClipHooksGeometricClipHooksIRegisterForSerializationICompositionObjectHostICompositionObjectAnimationsAsCompositionObjectICompositionObjectICompositorSerializable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.