class Gtk::ConstantExpression

Overview

A constant value in a Gtk::Expression.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/constant_expression.cr

Constructors

Class Method Summary

Instance Method Summary

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

Constructor methods inherited from class Gtk::Expression

new(pointer : Pointer(Void), transfer : GICrystal::Transfer) new

Class methods inherited from class Gtk::Expression

g_type : UInt64 g_type

Constructor Detail

def self.new #

Initialize a new ConstantExpression.


[View source]
def self.new_for_value(value : _) : self #

Creates an expression that always evaluates to the given #value.


[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def value : GObject::Value #

Gets the value that a constant expression evaluates to.


[View source]