pub trait FerroObjectImpl: ObjectType {
// Provided methods
fn constructed(this: &Self) { ... }
fn on_property_changed_core(
this: &Self,
change: &FerroPropertyChangedEventArgs<'_>,
) { ... }
fn on_property_changed(
this: &Self,
change: &FerroPropertyChangedEventArgs<'_>,
) { ... }
fn update_data_validation(
this: &Self,
property: &'static FerroProperty,
state: BindingValueType,
error: Option<&BindingError>,
) { ... }
}Expand description
The overridable members of FerroObject.
Provided Methods§
Sourcefn constructed(this: &Self)
fn constructed(this: &Self)
Called once, right after the object has been allocated. This is where
constructor logic that needs a reference to the object runs. Overrides
must call parent_constructed first.
Sourcefn on_property_changed_core(
this: &Self,
change: &FerroPropertyChangedEventArgs<'_>,
)
fn on_property_changed_core( this: &Self, change: &FerroPropertyChangedEventArgs<'_>, )
Called for every property change on the object, including changes of
non-effective (base) values. Overriding this is rarely needed; override
on_property_changed instead.
Sourcefn on_property_changed(this: &Self, change: &FerroPropertyChangedEventArgs<'_>)
fn on_property_changed(this: &Self, change: &FerroPropertyChangedEventArgs<'_>)
Called when the effective value of a property changes on the object.
Sourcefn update_data_validation(
this: &Self,
property: &'static FerroProperty,
state: BindingValueType,
error: Option<&BindingError>,
)
fn update_data_validation( this: &Self, property: &'static FerroProperty, state: BindingValueType, error: Option<&BindingError>, )
Called to update the validation state for properties for which data validation is enabled.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".