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 Properties macro.
When implementing ObjectImpl you may want to delegate the function calls to this trait.
Provided Methods§
Sourcefn derived_properties() -> &'static [ParamSpec]
fn derived_properties() -> &'static [ParamSpec]
Properties installed for this type.
Sourcefn derived_set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)
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.
Sourcefn derived_property(&self, _id: usize, _pspec: &ParamSpec) -> Value
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.