CClosureExpression

A variant of GtkClosureExpression using a C closure.

Constructors

this
this(GtkCClosureExpression* gtkCClosureExpression, bool ownedRef)

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

this
this(GType valueType, GClosureMarshal marshal, Expression[] params, GCallback callbackFunc, void* userData, GClosureNotify userDestroy)

This function is a variant of [ctor@Gtk.ClosureExpression.new] that creates a GClosure by calling g_cclosure_new() with the given callback_func, user_data and user_destroy.

Members

Functions

getCClosureExpressionStruct
GtkCClosureExpression* getCClosureExpressionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkCClosureExpression
GtkCClosureExpression* gtkCClosureExpression;

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