ClosureExpression

An expression using a custom GClosure to compute the value from its parameters.

Constructors

this
this(GtkClosureExpression* gtkClosureExpression, bool ownedRef)

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

this
this(GType valueType, Closure closure, Expression[] params)

Creates a GtkExpression that calls closure when it is evaluated. closure is called with the this object and the results of evaluating the params expressions.

Members

Functions

getClosureExpressionStruct
GtkClosureExpression* getClosureExpressionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkClosureExpression
GtkClosureExpression* gtkClosureExpression;

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