Skip to main content

CompositionViewBoxHooks

Trait CompositionViewBoxHooks 

Source
pub trait CompositionViewBoxHooks: ICompositionObjectHost {
Show 16 methods // Provided methods fn initialize_defaults_extra(&self) { ... } fn validate_horizontal_alignment_ratio_change( &self, _old_value: f32, _new_value: f32, ) { ... } fn on_horizontal_alignment_ratio_changed(&self) { ... } fn on_horizontal_alignment_ratio_changing(&self) { ... } fn validate_offset_change(&self, _old_value: Vector, _new_value: Vector) { ... } fn on_offset_changed(&self) { ... } fn on_offset_changing(&self) { ... } fn validate_size_change(&self, _old_value: Vector, _new_value: Vector) { ... } fn on_size_changed(&self) { ... } fn on_size_changing(&self) { ... } fn validate_stretch_change( &self, _old_value: CompositionStretch, _new_value: CompositionStretch, ) { ... } fn on_stretch_changed(&self) { ... } fn on_stretch_changing(&self) { ... } fn validate_vertical_alignment_ratio_change( &self, _old_value: f32, _new_value: f32, ) { ... } fn on_vertical_alignment_ratio_changed(&self) { ... } fn on_vertical_alignment_ratio_changing(&self) { ... }
}
Expand description

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