Skip to main content

CompositionLightHooks

Trait CompositionLightHooks 

Source
pub trait CompositionLightHooks: ICompositionObjectHost {
    // Provided methods
    fn initialize_defaults_extra(&self) { ... }
    fn validate_targets_change(
        &self,
        _old_value: &Option<Rc<dyn ICompositionObject>>,
        _new_value: &Option<Rc<dyn ICompositionObject>>,
    ) { ... }
    fn on_targets_changed(&self) { ... }
    fn on_targets_changing(&self) { ... }
    fn validate_exclusions_from_targets_change(
        &self,
        _old_value: &Option<Rc<dyn ICompositionObject>>,
        _new_value: &Option<Rc<dyn ICompositionObject>>,
    ) { ... }
    fn on_exclusions_from_targets_changed(&self) { ... }
    fn on_exclusions_from_targets_changing(&self) { ... }
    fn validate_is_enabled_change(&self, _old_value: bool, _new_value: bool) { ... }
    fn on_is_enabled_changed(&self) { ... }
    fn on_is_enabled_changing(&self) { ... }
}
Expand description

The partial methods of CompositionLight: implemented by the class that embeds CompositionLightProps. 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§