pub struct CompositionSpriteShapeProps { /* private fields */ }Expand description
The UI-thread properties of CompositionSpriteShape.
Implementations§
Source§impl CompositionSpriteShapeProps
impl CompositionSpriteShapeProps
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 base(&self) -> &CompositionShapeProps
pub fn base(&self) -> &CompositionShapeProps
The properties of the base class.
Sourcepub fn initialize_defaults(&self, host: &dyn CompositionSpriteShapeHooks)
pub fn initialize_defaults(&self, host: &dyn CompositionSpriteShapeHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn CompositionSpriteShapeHooks)
pub fn initialize_own_defaults(&self, host: &dyn CompositionSpriteShapeHooks)
InitializeDefaults of this class alone.
Sourcepub fn fill_brush(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn fill_brush(&self) -> Option<Rc<dyn ICompositionObject>>
FillBrush (FerroUI overlay).
Sourcepub fn set_fill_brush(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_fill_brush( &self, host: &dyn CompositionSpriteShapeHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets FillBrush (FerroUI overlay).
Sourcepub fn geometry(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn geometry(&self) -> Option<Rc<dyn ICompositionObject>>
Geometry (FerroUI overlay).
Sourcepub fn set_geometry(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_geometry( &self, host: &dyn CompositionSpriteShapeHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets Geometry (FerroUI overlay).
Sourcepub fn is_stroke_non_scaling(&self) -> bool
pub fn is_stroke_non_scaling(&self) -> bool
IsStrokeNonScaling (FerroUI overlay).
Sourcepub fn set_is_stroke_non_scaling(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: bool,
)
pub fn set_is_stroke_non_scaling( &self, host: &dyn CompositionSpriteShapeHooks, value: bool, )
Sets IsStrokeNonScaling (FerroUI overlay).
Sourcepub fn stroke_brush(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn stroke_brush(&self) -> Option<Rc<dyn ICompositionObject>>
StrokeBrush (FerroUI overlay).
Sourcepub fn set_stroke_brush(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_stroke_brush( &self, host: &dyn CompositionSpriteShapeHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets StrokeBrush (FerroUI overlay).
Sourcepub fn set_stroke_dash_array(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: Option<Arc<Vec<f32>>>,
)
pub fn set_stroke_dash_array( &self, host: &dyn CompositionSpriteShapeHooks, value: Option<Arc<Vec<f32>>>, )
Sets StrokeDashArray (FerroUI overlay).
Sourcepub fn stroke_dash_cap(&self) -> CompositionStrokeCap
pub fn stroke_dash_cap(&self) -> CompositionStrokeCap
StrokeDashCap (FerroUI overlay).
Sourcepub fn set_stroke_dash_cap(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: CompositionStrokeCap,
)
pub fn set_stroke_dash_cap( &self, host: &dyn CompositionSpriteShapeHooks, value: CompositionStrokeCap, )
Sets StrokeDashCap (FerroUI overlay).
Sourcepub fn stroke_dash_offset(&self) -> f32
pub fn stroke_dash_offset(&self) -> f32
StrokeDashOffset (animated, FerroUI overlay).
Sourcepub fn set_stroke_dash_offset(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: f32,
)
pub fn set_stroke_dash_offset( &self, host: &dyn CompositionSpriteShapeHooks, value: f32, )
Sets StrokeDashOffset (animated, FerroUI overlay).
Sourcepub fn stroke_end_cap(&self) -> CompositionStrokeCap
pub fn stroke_end_cap(&self) -> CompositionStrokeCap
StrokeEndCap (FerroUI overlay).
Sourcepub fn set_stroke_end_cap(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: CompositionStrokeCap,
)
pub fn set_stroke_end_cap( &self, host: &dyn CompositionSpriteShapeHooks, value: CompositionStrokeCap, )
Sets StrokeEndCap (FerroUI overlay).
Sourcepub fn stroke_line_join(&self) -> CompositionStrokeLineJoin
pub fn stroke_line_join(&self) -> CompositionStrokeLineJoin
StrokeLineJoin (FerroUI overlay).
Sourcepub fn set_stroke_line_join(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: CompositionStrokeLineJoin,
)
pub fn set_stroke_line_join( &self, host: &dyn CompositionSpriteShapeHooks, value: CompositionStrokeLineJoin, )
Sets StrokeLineJoin (FerroUI overlay).
Sourcepub fn stroke_miter_limit(&self) -> f32
pub fn stroke_miter_limit(&self) -> f32
StrokeMiterLimit (animated, default 2.0, FerroUI overlay).
Sourcepub fn set_stroke_miter_limit(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: f32,
)
pub fn set_stroke_miter_limit( &self, host: &dyn CompositionSpriteShapeHooks, value: f32, )
Sets StrokeMiterLimit (animated, default 2.0, FerroUI overlay).
Sourcepub fn stroke_start_cap(&self) -> CompositionStrokeCap
pub fn stroke_start_cap(&self) -> CompositionStrokeCap
StrokeStartCap (FerroUI overlay).
Sourcepub fn set_stroke_start_cap(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: CompositionStrokeCap,
)
pub fn set_stroke_start_cap( &self, host: &dyn CompositionSpriteShapeHooks, value: CompositionStrokeCap, )
Sets StrokeStartCap (FerroUI overlay).
Sourcepub fn stroke_thickness(&self) -> f32
pub fn stroke_thickness(&self) -> f32
StrokeThickness (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_stroke_thickness(
&self,
host: &dyn CompositionSpriteShapeHooks,
value: f32,
)
pub fn set_stroke_thickness( &self, host: &dyn CompositionSpriteShapeHooks, value: f32, )
Sets StrokeThickness (animated, default 1.0, FerroUI overlay).
Sourcepub fn start_animation(
&self,
host: &dyn CompositionSpriteShapeHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn CompositionSpriteShapeHooks, 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 CompositionSpriteShapeHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn CompositionSpriteShapeHooks, 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 CompositionSpriteShapeProps
impl !RefUnwindSafe for CompositionSpriteShapeProps
impl !Send for CompositionSpriteShapeProps
impl !Sync for CompositionSpriteShapeProps
impl !UnwindSafe for CompositionSpriteShapeProps
impl Unpin for CompositionSpriteShapeProps
impl UnsafeUnpin for CompositionSpriteShapeProps
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