gtkmm 4.17.0
|
#include <gtkmm/expression.h>
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. | |
static Glib::RefPtr< PropertyExpression > | create (GType this_type, const Glib::ustring & property_name) |
Creates an expression that looks up a property via the this argument. | |
template<class OT > | |
static Glib::RefPtr< PropertyExpression > | create (const Glib::RefPtr< OT > &expression, const Glib::ustring & property_name) |
Creates an expression that looks up a property via the given expression. | |
template<class OT > | |
static Glib::RefPtr< PropertyExpression > | create (GType this_type, const Glib::RefPtr< OT > &expression, const Glib::ustring & property_name) |
Creates an expression that looks up a property via the given expression. | |
Additional Inherited Members | |
![]() | |
using | ValueType = T |
![]() | |
using | SlotNotify = sigc::slot< void()> |
For instance: void on_notify();. | |
![]() | |
std::optional< T > | evaluate (const Glib::RefPtr< Glib::ObjectBase > &this_) |
Evaluates the given expression and on success returns the result. | |
Glib::RefPtr< ExpressionWatch< T > > | watch (const Glib::RefPtr< Glib::ObjectBase > &this_, const SlotNotify & notify) |
Installs a watch for the expression that calls the notify function whenever the evaluation of the expression may have changed. | |
template<class T2 > | |
Glib::RefPtr< ExpressionWatch< T > > | bind (const Glib::PropertyProxy< T2 > &property, const Glib::RefPtr< Glib::ObjectBase > &this_=nullptr) |
Bind a target's property to the expression. | |
template<class T2 > | |
Glib::RefPtr< ExpressionWatch< T > > | bind (const Glib::PropertyProxy_WriteOnly< T2 > &property, const Glib::RefPtr< Glib::ObjectBase > &this_=nullptr) |
Bind a target's property to the expression. | |
![]() | |
void | reference () const |
Increment the reference count for this object. | |
void | unreference () const |
Decrement the reference count for this object. | |
GtkExpression * | gobj () |
Provides access to the underlying C instance. | |
const GtkExpression * | gobj () const |
Provides access to the underlying C instance. | |
GtkExpression * | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
ExpressionBase ()=delete | |
ExpressionBase (const ExpressionBase &)=delete | |
ExpressionBase & | operator= (const ExpressionBase &)=delete |
GType | get_value_type () const |
Gets the GType that this expression evaluates to. | |
bool | is_static () const |
Checks if the expression is static. | |
![]() | |
void | operator delete (void *, std::size_t) |
![]() | |
Glib::RefPtr< Gtk::ExpressionBase > | wrap (GtkExpression *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
|
static |
Creates an expression that looks up a property via the given expression.
If the resulting object conforms to OT, its property named property_name will be queried. Otherwise, this expression's evaluation will fail.
The value type of the given expression must have a property with property_name.
expression | Expression to evaluate to get the object to query. |
property_name | Name of the property. |
|
static |
Creates an expression that looks up a property via the given expression.
If the resulting object conforms to this_type, its property named property_name will be queried. Otherwise, this expression's evaluation will fail.
The given this_type must have a property with property_name.
this_type | The type to expect for the this type. |
expression | Expression to evaluate to get the object to query. |
property_name | Name of the property. |
|
static |
Creates an expression that looks up a property via the this
argument.
If the resulting object conforms to this_type, its property named property_name will be queried. Otherwise, this expression's evaluation will fail.
The given this_type must have a property with property_name.
this_type | The type to expect for the this type. |
property_name | Name of the property. |
|
static |
Get the GType for this class, for use with the underlying GObject type system.