pub struct CompositionRadialGradientBrushProps { /* private fields */ }Expand description
The UI-thread properties of CompositionRadialGradientBrush.
Implementations§
Source§impl CompositionRadialGradientBrushProps
impl CompositionRadialGradientBrushProps
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 CompositionRadialGradientBrushHooks,
)
pub fn initialize_defaults( &self, host: &dyn CompositionRadialGradientBrushHooks, )
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
)
pub fn initialize_own_defaults( &self, host: &dyn CompositionRadialGradientBrushHooks, )
InitializeDefaults of this class alone.
Sourcepub fn center(&self) -> RelativePoint
pub fn center(&self) -> RelativePoint
Center (animated).
Sourcepub fn set_center(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: RelativePoint,
)
pub fn set_center( &self, host: &dyn CompositionRadialGradientBrushHooks, value: RelativePoint, )
Sets Center (animated).
Sourcepub fn gradient_origin(&self) -> RelativePoint
pub fn gradient_origin(&self) -> RelativePoint
GradientOrigin (animated).
Sourcepub fn set_gradient_origin(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: RelativePoint,
)
pub fn set_gradient_origin( &self, host: &dyn CompositionRadialGradientBrushHooks, value: RelativePoint, )
Sets GradientOrigin (animated).
Sourcepub fn radius_x(&self) -> RelativeScalar
pub fn radius_x(&self) -> RelativeScalar
RadiusX (animated, default RelativeScalar::MIDDLE).
Sourcepub fn set_radius_x(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: RelativeScalar,
)
pub fn set_radius_x( &self, host: &dyn CompositionRadialGradientBrushHooks, value: RelativeScalar, )
Sets RadiusX (animated, default RelativeScalar::MIDDLE).
Sourcepub fn radius_y(&self) -> RelativeScalar
pub fn radius_y(&self) -> RelativeScalar
RadiusY (animated, default RelativeScalar::MIDDLE).
Sourcepub fn set_radius_y(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: RelativeScalar,
)
pub fn set_radius_y( &self, host: &dyn CompositionRadialGradientBrushHooks, value: RelativeScalar, )
Sets RadiusY (animated, default RelativeScalar::MIDDLE).
Sourcepub fn anchor_point(&self) -> Vector
pub fn anchor_point(&self) -> Vector
AnchorPoint (animated, FerroUI overlay).
Sourcepub fn set_anchor_point(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: Vector,
)
pub fn set_anchor_point( &self, host: &dyn CompositionRadialGradientBrushHooks, value: Vector, )
Sets AnchorPoint (animated, FerroUI overlay).
Sourcepub fn center_point(&self) -> Vector
pub fn center_point(&self) -> Vector
CenterPoint (animated, FerroUI overlay).
Sourcepub fn set_center_point(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: Vector,
)
pub fn set_center_point( &self, host: &dyn CompositionRadialGradientBrushHooks, value: Vector, )
Sets CenterPoint (animated, FerroUI overlay).
Sourcepub fn set_offset(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: Vector,
)
pub fn set_offset( &self, host: &dyn CompositionRadialGradientBrushHooks, value: Vector, )
Sets Offset (animated, FerroUI overlay).
Sourcepub fn rotation_angle(&self) -> f32
pub fn rotation_angle(&self) -> f32
RotationAngle (animated, FerroUI overlay).
Sourcepub fn set_rotation_angle(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: f32,
)
pub fn set_rotation_angle( &self, host: &dyn CompositionRadialGradientBrushHooks, value: f32, )
Sets RotationAngle (animated, FerroUI overlay).
Sourcepub fn scale(&self) -> Vector
pub fn scale(&self) -> Vector
Scale (animated, default Vector::new(1.0, 1.0), FerroUI overlay).
Sourcepub fn set_scale(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: Vector,
)
pub fn set_scale( &self, host: &dyn CompositionRadialGradientBrushHooks, value: Vector, )
Sets Scale (animated, default Vector::new(1.0, 1.0), FerroUI overlay).
Sourcepub fn transform_matrix(&self) -> Matrix
pub fn transform_matrix(&self) -> Matrix
TransformMatrix (animated, default Matrix::IDENTITY, FerroUI overlay).
Sourcepub fn set_transform_matrix(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
value: Matrix,
)
pub fn set_transform_matrix( &self, host: &dyn CompositionRadialGradientBrushHooks, value: Matrix, )
Sets TransformMatrix (animated, default Matrix::IDENTITY, FerroUI overlay).
Sourcepub fn start_animation(
&self,
host: &dyn CompositionRadialGradientBrushHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn CompositionRadialGradientBrushHooks, 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 CompositionRadialGradientBrushHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn CompositionRadialGradientBrushHooks, 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 CompositionRadialGradientBrushProps
impl !RefUnwindSafe for CompositionRadialGradientBrushProps
impl !Sync for CompositionRadialGradientBrushProps
impl Send for CompositionRadialGradientBrushProps
impl Unpin for CompositionRadialGradientBrushProps
impl UnsafeUnpin for CompositionRadialGradientBrushProps
impl UnwindSafe for CompositionRadialGradientBrushProps
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