pub struct CompositionBrushProps { /* private fields */ }Expand description
The UI-thread properties of CompositionBrush.
Implementations§
Source§impl CompositionBrushProps
impl CompositionBrushProps
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the properties with every field at the default of its type.
The defaults of the schema are applied by
initialize_defaults.
Sourcepub fn initialize_defaults(&self, host: &dyn CompositionBrushHooks)
pub fn initialize_defaults(&self, host: &dyn CompositionBrushHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn CompositionBrushHooks)
pub fn initialize_own_defaults(&self, host: &dyn CompositionBrushHooks)
InitializeDefaults of this class alone.
Sourcepub fn set_opacity(&self, host: &dyn CompositionBrushHooks, value: f64)
pub fn set_opacity(&self, host: &dyn CompositionBrushHooks, value: f64)
Sets Opacity (animated, default 1.0).
Sourcepub fn transform_origin(&self) -> RelativePoint
pub fn transform_origin(&self) -> RelativePoint
TransformOrigin.
Sourcepub fn set_transform_origin(
&self,
host: &dyn CompositionBrushHooks,
value: RelativePoint,
)
pub fn set_transform_origin( &self, host: &dyn CompositionBrushHooks, value: RelativePoint, )
Sets TransformOrigin.
Sourcepub fn transform(&self) -> Option<BatchResource<dyn ITransform>>
pub fn transform(&self) -> Option<BatchResource<dyn ITransform>>
Transform.
Sourcepub fn set_transform(
&self,
host: &dyn CompositionBrushHooks,
value: Option<BatchResource<dyn ITransform>>,
)
pub fn set_transform( &self, host: &dyn CompositionBrushHooks, value: Option<BatchResource<dyn ITransform>>, )
Sets Transform.
Sourcepub fn relative_transform(&self) -> Option<BatchResource<dyn ITransform>>
pub fn relative_transform(&self) -> Option<BatchResource<dyn ITransform>>
RelativeTransform.
Sourcepub fn set_relative_transform(
&self,
host: &dyn CompositionBrushHooks,
value: Option<BatchResource<dyn ITransform>>,
)
pub fn set_relative_transform( &self, host: &dyn CompositionBrushHooks, value: Option<BatchResource<dyn ITransform>>, )
Sets RelativeTransform.
Sourcepub fn start_animation(
&self,
host: &dyn CompositionBrushHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn CompositionBrushHooks, property_name: &str, animation: &dyn ICompositionAnimation, final_value: Option<ExpressionVariant>, ) -> bool
Connects an animation with the named property. Returns false when
neither this class nor its generated bases have an animated property
of that name: the caller continues with its hand-written base.
Sourcepub fn serialize_changes_core(
&self,
host: &dyn CompositionBrushHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn CompositionBrushHooks, writer: &mut BatchStreamWriter<'_>, )
Writes the changes of the object: the base class first, then the changed-fields mask and the changed members of this class.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CompositionBrushProps
impl !RefUnwindSafe for CompositionBrushProps
impl !Send for CompositionBrushProps
impl !Sync for CompositionBrushProps
impl !UnwindSafe for CompositionBrushProps
impl Unpin for CompositionBrushProps
impl UnsafeUnpin for CompositionBrushProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more