glib::subclass::object

Trait DerivedObjectProperties

Source
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§

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.

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.

Implementors§