pub struct CompositionLinearGradientBrushProps { /* private fields */ }Expand description
The UI-thread properties of CompositionLinearGradientBrush.
Implementations§
Source§impl CompositionLinearGradientBrushProps
impl CompositionLinearGradientBrushProps
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 CompositionLinearGradientBrushHooks,
)
pub fn initialize_defaults( &self, host: &dyn CompositionLinearGradientBrushHooks, )
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(
&self,
host: &dyn CompositionLinearGradientBrushHooks,
)
pub fn initialize_own_defaults( &self, host: &dyn CompositionLinearGradientBrushHooks, )
InitializeDefaults of this class alone.
Sourcepub fn start_point(&self) -> RelativePoint
pub fn start_point(&self) -> RelativePoint
StartPoint (animated).
Sourcepub fn set_start_point(
&self,
host: &dyn CompositionLinearGradientBrushHooks,
value: RelativePoint,
)
pub fn set_start_point( &self, host: &dyn CompositionLinearGradientBrushHooks, value: RelativePoint, )
Sets StartPoint (animated).
Sourcepub fn end_point(&self) -> RelativePoint
pub fn end_point(&self) -> RelativePoint
EndPoint (animated).
Sourcepub fn set_end_point(
&self,
host: &dyn CompositionLinearGradientBrushHooks,
value: RelativePoint,
)
pub fn set_end_point( &self, host: &dyn CompositionLinearGradientBrushHooks, value: RelativePoint, )
Sets EndPoint (animated).
Sourcepub fn start_animation(
&self,
host: &dyn CompositionLinearGradientBrushHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn CompositionLinearGradientBrushHooks, 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 CompositionLinearGradientBrushHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn CompositionLinearGradientBrushHooks, 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 CompositionLinearGradientBrushProps
impl !RefUnwindSafe for CompositionLinearGradientBrushProps
impl !Sync for CompositionLinearGradientBrushProps
impl Send for CompositionLinearGradientBrushProps
impl Unpin for CompositionLinearGradientBrushProps
impl UnsafeUnpin for CompositionLinearGradientBrushProps
impl UnwindSafe for CompositionLinearGradientBrushProps
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more