Skip to main content

CompositionVisualSurfaceHooks

Trait CompositionVisualSurfaceHooks 

Source
pub trait CompositionVisualSurfaceHooks: ICompositionObjectHost {
    // Provided methods
    fn initialize_defaults_extra(&self) { ... }
    fn validate_source_visual_change(
        &self,
        _old_value: &Option<Rc<dyn ICompositionObject>>,
        _new_value: &Option<Rc<dyn ICompositionObject>>,
    ) { ... }
    fn on_source_visual_changed(&self) { ... }
    fn on_source_visual_changing(&self) { ... }
    fn validate_source_offset_change(
        &self,
        _old_value: Vector,
        _new_value: Vector,
    ) { ... }
    fn on_source_offset_changed(&self) { ... }
    fn on_source_offset_changing(&self) { ... }
    fn validate_source_size_change(
        &self,
        _old_value: Vector,
        _new_value: Vector,
    ) { ... }
    fn on_source_size_changed(&self) { ... }
    fn on_source_size_changing(&self) { ... }
}
Expand description

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

Source§

impl CompositionVisualSurfaceHooks for CompositionVisualSurface

InitializeDefaultsExtra activates the server object: done when the server object is created.