ConstantExpression

A constant value in a GtkExpression.

Constructors

this
this(GtkConstantExpression* gtkConstantExpression, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Value value)

Creates an expression that always evaluates to the given value.

Members

Functions

getConstantExpressionStruct
GtkConstantExpression* getConstantExpressionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getValue
Value getValue()

Gets the value that a constant expression evaluates to.

Static functions

getType
GType getType()

Variables

gtkConstantExpression
GtkConstantExpression* gtkConstantExpression;

the main Gtk struct

Inherited Members

From Expression

gtkExpression
GtkExpression* gtkExpression;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.
getExpressionStruct
GtkExpression* getExpressionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

~this
~this()
Undocumented in source.
getType
GType getType()
bind
ExpressionWatch bind(ObjectG target, string property, ObjectG this_)

Bind target's property named property to self.

evaluate
bool evaluate(ObjectG this_, Value value)

Evaluates the given expression and on success stores the result in @value.

getValueType
GType getValueType()

Gets the GType that this expression evaluates to.

isStatic
bool isStatic()

Checks if the expression is static.

doref
alias doref = ref_
Undocumented in source.
ref_
Expression ref_()

Acquires a reference on the given GtkExpression.

unref
void unref()

Releases a reference on the given GtkExpression.

watch
ExpressionWatch watch(ObjectG this_, GtkExpressionNotify notify, void* userData, GDestroyNotify userDestroy)

Installs a watch for the given expression that calls the notify function whenever the evaluation of self may have changed.

Meta