class Gtk::ObjectExpression
 
  - Gtk::ObjectExpression
 - Gtk::Expression
 - Reference
 - Object
 
Overview
A GObject value in a Gtk::Expression.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/object_expression.crConstructors
- 
        .new(object : GObject::Object) : self
        
          
Creates an expression evaluating to the given
#objectwith a weak reference. - 
        .new
        
          
Initialize a new
ObjectExpression. 
Class Method Summary
- 
        .g_type : UInt64
        
          
Returns the type id (GType) registered in GLib type system.
 
Instance Method Summary
- 
        #==(other : self)
        
          
Returns
trueif this reference is the same as other. - 
        #hash(hasher)
        
          
See
Object#hash(hasher) - 
        #object : GObject::Object | Nil
        
          
Gets the object that the expression evaluates to.
 
Instance methods inherited from class Gtk::Expression
  
  
    
      ==(other : self)
    ==, 
    
  
    
      bind(target : GObject::Object, property : String, this_ : GObject::Object | Nil) : Gtk::ExpressionWatch
    bind, 
    
  
    
      evaluate(this_ : GObject::Object | Nil, value : _) : Bool
    evaluate, 
    
  
    
      finalize
    finalize, 
    
  
    
      hash(hasher)
    hash, 
    
  
    
      is_static : Bool
    is_static, 
    
  
    
      to_unsafe : Pointer(Void)
    to_unsafe, 
    
  
    
      value_type : UInt64
    value_type, 
    
  
    
      watch(this_ : GObject::Object | Nil, notify : Gtk::ExpressionNotify) : Gtk::ExpressionWatch
    watch
    
  
    
    
  Class methods inherited from class Gtk::Expression
  
  
    
      g_type : UInt64
    g_type
    
  
    
  
    
    
    
    
  
    
    
    
    
  
Constructor Detail
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 Gtk::ConstantExpression.new.
Class Method Detail
Instance Method Detail
        
        def ==(other : self)
        #
      
      
        
              Description copied from class Reference
            
          
          Returns true if this reference is the same as other. Invokes same?.