pub trait CompositionSpriteShapeHooks: CompositionShapeHooks {
Show 37 methods
// Provided methods
fn initialize_defaults_extra(&self) { ... }
fn validate_fill_brush_change(
&self,
_old_value: &Option<Rc<dyn ICompositionObject>>,
_new_value: &Option<Rc<dyn ICompositionObject>>,
) { ... }
fn on_fill_brush_changed(&self) { ... }
fn on_fill_brush_changing(&self) { ... }
fn validate_geometry_change(
&self,
_old_value: &Option<Rc<dyn ICompositionObject>>,
_new_value: &Option<Rc<dyn ICompositionObject>>,
) { ... }
fn on_geometry_changed(&self) { ... }
fn on_geometry_changing(&self) { ... }
fn validate_is_stroke_non_scaling_change(
&self,
_old_value: bool,
_new_value: bool,
) { ... }
fn on_is_stroke_non_scaling_changed(&self) { ... }
fn on_is_stroke_non_scaling_changing(&self) { ... }
fn validate_stroke_brush_change(
&self,
_old_value: &Option<Rc<dyn ICompositionObject>>,
_new_value: &Option<Rc<dyn ICompositionObject>>,
) { ... }
fn on_stroke_brush_changed(&self) { ... }
fn on_stroke_brush_changing(&self) { ... }
fn validate_stroke_dash_array_change(
&self,
_old_value: &Option<Arc<Vec<f32>>>,
_new_value: &Option<Arc<Vec<f32>>>,
) { ... }
fn on_stroke_dash_array_changed(&self) { ... }
fn on_stroke_dash_array_changing(&self) { ... }
fn validate_stroke_dash_cap_change(
&self,
_old_value: CompositionStrokeCap,
_new_value: CompositionStrokeCap,
) { ... }
fn on_stroke_dash_cap_changed(&self) { ... }
fn on_stroke_dash_cap_changing(&self) { ... }
fn validate_stroke_dash_offset_change(
&self,
_old_value: f32,
_new_value: f32,
) { ... }
fn on_stroke_dash_offset_changed(&self) { ... }
fn on_stroke_dash_offset_changing(&self) { ... }
fn validate_stroke_end_cap_change(
&self,
_old_value: CompositionStrokeCap,
_new_value: CompositionStrokeCap,
) { ... }
fn on_stroke_end_cap_changed(&self) { ... }
fn on_stroke_end_cap_changing(&self) { ... }
fn validate_stroke_line_join_change(
&self,
_old_value: CompositionStrokeLineJoin,
_new_value: CompositionStrokeLineJoin,
) { ... }
fn on_stroke_line_join_changed(&self) { ... }
fn on_stroke_line_join_changing(&self) { ... }
fn validate_stroke_miter_limit_change(
&self,
_old_value: f32,
_new_value: f32,
) { ... }
fn on_stroke_miter_limit_changed(&self) { ... }
fn on_stroke_miter_limit_changing(&self) { ... }
fn validate_stroke_start_cap_change(
&self,
_old_value: CompositionStrokeCap,
_new_value: CompositionStrokeCap,
) { ... }
fn on_stroke_start_cap_changed(&self) { ... }
fn on_stroke_start_cap_changing(&self) { ... }
fn validate_stroke_thickness_change(&self, _old_value: f32, _new_value: f32) { ... }
fn on_stroke_thickness_changed(&self) { ... }
fn on_stroke_thickness_changing(&self) { ... }
}Expand description
The partial methods of CompositionSpriteShape: implemented by the class that embeds
CompositionSpriteShapeProps. Every hook defaults to doing nothing.
Provided Methods§
fn initialize_defaults_extra(&self)
fn validate_fill_brush_change( &self, _old_value: &Option<Rc<dyn ICompositionObject>>, _new_value: &Option<Rc<dyn ICompositionObject>>, )
fn on_fill_brush_changed(&self)
fn on_fill_brush_changing(&self)
fn validate_geometry_change( &self, _old_value: &Option<Rc<dyn ICompositionObject>>, _new_value: &Option<Rc<dyn ICompositionObject>>, )
fn on_geometry_changed(&self)
fn on_geometry_changing(&self)
fn validate_is_stroke_non_scaling_change( &self, _old_value: bool, _new_value: bool, )
fn on_is_stroke_non_scaling_changed(&self)
fn on_is_stroke_non_scaling_changing(&self)
fn validate_stroke_brush_change( &self, _old_value: &Option<Rc<dyn ICompositionObject>>, _new_value: &Option<Rc<dyn ICompositionObject>>, )
fn on_stroke_brush_changed(&self)
fn on_stroke_brush_changing(&self)
fn validate_stroke_dash_array_change( &self, _old_value: &Option<Arc<Vec<f32>>>, _new_value: &Option<Arc<Vec<f32>>>, )
fn on_stroke_dash_array_changed(&self)
fn on_stroke_dash_array_changing(&self)
fn validate_stroke_dash_cap_change( &self, _old_value: CompositionStrokeCap, _new_value: CompositionStrokeCap, )
fn on_stroke_dash_cap_changed(&self)
fn on_stroke_dash_cap_changing(&self)
fn validate_stroke_dash_offset_change(&self, _old_value: f32, _new_value: f32)
fn on_stroke_dash_offset_changed(&self)
fn on_stroke_dash_offset_changing(&self)
fn validate_stroke_end_cap_change( &self, _old_value: CompositionStrokeCap, _new_value: CompositionStrokeCap, )
fn on_stroke_end_cap_changed(&self)
fn on_stroke_end_cap_changing(&self)
fn validate_stroke_line_join_change( &self, _old_value: CompositionStrokeLineJoin, _new_value: CompositionStrokeLineJoin, )
fn on_stroke_line_join_changed(&self)
fn on_stroke_line_join_changing(&self)
fn validate_stroke_miter_limit_change(&self, _old_value: f32, _new_value: f32)
fn on_stroke_miter_limit_changed(&self)
fn on_stroke_miter_limit_changing(&self)
fn validate_stroke_start_cap_change( &self, _old_value: CompositionStrokeCap, _new_value: CompositionStrokeCap, )
fn on_stroke_start_cap_changed(&self)
fn on_stroke_start_cap_changing(&self)
fn validate_stroke_thickness_change(&self, _old_value: f32, _new_value: f32)
fn on_stroke_thickness_changed(&self)
fn on_stroke_thickness_changing(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".