pub trait DerivedObjectProperties: ObjectSubclass {
    // Provided methods
    fn derived_properties() -> &'static [ParamSpec] { ... }
    fn derived_set_property(
        &self,
        _id: usize,
        _value: &Value,
        _pspec: &ParamSpec
    ) { ... }
    fn derived_property(&self, _id: usize, _pspec: &ParamSpec) -> Value { ... }
}
Expand description

Trait containing only the property related functions of ObjectImpl. Implemented by the Props macro. When implementing ObjectImpl you may want to delegate the function calls to this trait.

Provided Methods§

source

fn derived_properties() -> &'static [ParamSpec]

Properties installed for this type.

source

fn derived_set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)

Similar to ObjectImpl but auto-generated by the [Properties] macro to allow handling more complex use-cases.

source

fn derived_property(&self, _id: usize, _pspec: &ParamSpec) -> Value

Similar to ObjectImpl but auto-generated by the [Properties] macro to allow handling more complex use-cases.

Implementors§