pub trait CompositionLinearGradientBrushHooks: ICompositionObjectHost {
// Required method
fn base_serialize_changes_core(&self, writer: &mut BatchStreamWriter<'_>);
// Provided methods
fn initialize_defaults_extra(&self) { ... }
fn validate_start_point_change(
&self,
_old_value: RelativePoint,
_new_value: RelativePoint,
) { ... }
fn on_start_point_changed(&self) { ... }
fn on_start_point_changing(&self) { ... }
fn validate_end_point_change(
&self,
_old_value: RelativePoint,
_new_value: RelativePoint,
) { ... }
fn on_end_point_changed(&self) { ... }
fn on_end_point_changing(&self) { ... }
}Expand description
The partial methods of CompositionLinearGradientBrush: implemented by the class that embeds
CompositionLinearGradientBrushProps. Every hook defaults to doing nothing.
Required Methods§
Sourcefn base_serialize_changes_core(&self, writer: &mut BatchStreamWriter<'_>)
fn base_serialize_changes_core(&self, writer: &mut BatchStreamWriter<'_>)
base.SerializeChangesCore(writer): serializes the changes of the
hand-written base class CompositionGradientBrush.
Provided Methods§
fn initialize_defaults_extra(&self)
fn validate_start_point_change( &self, _old_value: RelativePoint, _new_value: RelativePoint, )
fn on_start_point_changed(&self)
fn on_start_point_changing(&self)
fn validate_end_point_change( &self, _old_value: RelativePoint, _new_value: RelativePoint, )
fn on_end_point_changed(&self)
fn on_end_point_changing(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".