FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroObjectImpl

    trait · ferroui-base · v0.5.0

    trait FerroObjectImpl: ObjectType
    

    The overridable members of FerroObject.

    View source

    Members

    constructed

    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.

    Source

    on_property_changed_core

    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.

    Source

    on_property_changed

    fn on_property_changed(this: &Self, change: &FerroPropertyChangedEventArgs<'_>)
    

    Called when the effective value of a property changes on the object.

    Source

    update_data_validation

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.