CompositionBrush
struct · ferroui-base · v0.5.0
struct CompositionBrush
A brush of the composition API.
Members
compositorobjectis_disposedtype_nameto_rcas_brushimplicit_animationsset_implicit_animationsopacityset_opacitytransform_originset_transform_origintransformset_transformrelative_transformset_relative_transform
compositor
fn compositor(self: &Self) -> &Rc<Compositor>
object
fn object(self: &Self) -> &CompositionObject
The embedded CompositionObject.
is_disposed
fn is_disposed(self: &Self) -> bool
type_name
fn type_name(self: &Self) -> &'static str
The name of the concrete class, for messages.
to_rc
fn to_rc(self: &Self) -> Rc<CompositionBrush>
The handle of the brush, from a reference to it (an IBrush seen as
a CompositionBrush through IBrush::as_composition_brush).
as_brush
fn as_brush(self: &Self) -> Rc<dyn IBrush>
The brush as an IBrush handle.
implicit_animations
fn implicit_animations(self: &Self) -> Option<Rc<ImplicitAnimationCollection>>
The collection of implicit animations attached to this object.
set_implicit_animations
fn set_implicit_animations(self: &Self, value: Option<Rc<ImplicitAnimationCollection>>)
opacity
fn opacity(self: &Self) -> f64
set_opacity
fn set_opacity(self: &Self, value: f64)
transform_origin
fn transform_origin(self: &Self) -> RelativePoint
set_transform_origin
fn set_transform_origin(self: &Self, value: RelativePoint)
transform
fn transform(self: &Self) -> Option<Rc<dyn ITransform>>
set_transform
fn set_transform(self: &Self, value: Option<Rc<dyn ITransform>>)
Sets the transform. What the server receives is the form a
transform takes on a compositor (GetServer): an immutable
transform as it is, a mutable one as a copy of its current value.
relative_transform
fn relative_transform(self: &Self) -> Option<Rc<dyn ITransform>>
set_relative_transform
fn set_relative_transform(self: &Self, value: Option<Rc<dyn ITransform>>)
Sets the relative transform; see set_transform.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherCompositionBrushHooksCompositionSolidColorBrushHooksCompositionSurfaceBrushHooksCompositionNineGridBrushHooksCompositionMaskBrushHooksCompositionLinearGradientBrushHooksCompositionRadialGradientBrushHooksCompositionConicGradientBrushHooksIRegisterForSerializationICompositionObjectHostICompositionObjectAnimationsAsCompositionObjectICompositionObjectICompositorSerializableIBrushISolidColorBrushIGradientBrushILinearGradientBrushIRadialGradientBrushIConicGradientBrush
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.