Skip to main content

ShapeVisualHooks

Trait ShapeVisualHooks 

Source
pub trait ShapeVisualHooks: CompositionContainerVisualHooks {
    // Provided methods
    fn initialize_defaults_extra(&self) { ... }
    fn validate_shapes_change(
        &self,
        _old_value: &Option<Rc<dyn ICompositionObject>>,
        _new_value: &Option<Rc<dyn ICompositionObject>>,
    ) { ... }
    fn on_shapes_changed(&self) { ... }
    fn on_shapes_changing(&self) { ... }
    fn validate_view_box_change(
        &self,
        _old_value: &Option<Rc<dyn ICompositionObject>>,
        _new_value: &Option<Rc<dyn ICompositionObject>>,
    ) { ... }
    fn on_view_box_changed(&self) { ... }
    fn on_view_box_changing(&self) { ... }
}
Expand description

The partial methods of ShapeVisual: implemented by the class that embeds ShapeVisualProps. Every hook defaults to doing nothing.

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§