pub trait GObjectPropertyExpressionExt: IsA<Object> {
// Provided methods
fn property_expression(&self, property_name: &str) -> PropertyExpression { ... }
fn property_expression_weak(
&self,
property_name: &str,
) -> PropertyExpression { ... }
fn this_expression(property_name: &str) -> PropertyExpression { ... }
}
Expand description
Trait containing convenience methods in creating
PropertyExpression
that
looks up a property of a glib::Object
.
§Example
label_expression
is an Expression
that looks up at
Button’s label
property.
use gtk::prelude::*;
let button = gtk::Button::new();
button.set_label("Label property");
let label_expression = button.property_expression("label");
Provided Methods§
Sourcefn property_expression(&self, property_name: &str) -> PropertyExpression
fn property_expression(&self, property_name: &str) -> PropertyExpression
Create an expression looking up an object’s property.
Sourcefn property_expression_weak(&self, property_name: &str) -> PropertyExpression
fn property_expression_weak(&self, property_name: &str) -> PropertyExpression
Create an expression looking up an object’s property with a weak reference.
Sourcefn this_expression(property_name: &str) -> PropertyExpression
fn this_expression(property_name: &str) -> PropertyExpression
Create an expression looking up a property in the bound this
object.
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.