class Gtk::ObjectExpression


A GObject value in a Gtk::Expression.

Defined in:



Class Method Summary

Instance Method Summary

Instance methods inherited from class Gtk::Expression

bind(target : GObject::Object, property : String, this_ : GObject::Object?) : Gtk::ExpressionWatch bind, evaluate(this_ : GObject::Object?, value : _) : Bool evaluate, finalize finalize, is_static : Bool is_static, to_unsafe : Pointer(Void) to_unsafe, value_type : UInt64 value_type, watch(this_ : GObject::Object?, notify : Gtk::ExpressionNotify) : Gtk::ExpressionWatch watch

Class methods inherited from class Gtk::Expression

g_type : UInt64 g_type

Constructor Detail

def : GObject::Object) : self #

Creates an expression evaluating to the given #object with a weak reference.

Once the #object is disposed, it will fail to evaluate.

This expression is meant to break reference cycles.

If you want to keep a reference to #object, use

def #

Initialize a new ObjectExpression.

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.

Instance Method Detail

def object : GObject::Object? #

Gets the object that the expression evaluates to.