Class CClosureExpression
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gtk.Expression
org.gnome.gtk.CClosureExpression
- All Implemented Interfaces:
Proxy
A variant of
GtkClosureExpression using a C closure.-
Nested Class Summary
Nested classes/interfaces inherited from class Expression
Expression.Expression$Impl -
Constructor Summary
ConstructorsConstructorDescriptionCClosureExpression(MemorySegment address) Create a CClosureExpression instance for the provided memory address.CClosureExpression(Type valueType, @Nullable ClosureMarshal marshal, @Nullable Expression @Nullable [] params, @Nullable Callback callbackFunc, @Nullable ClosureNotify userDestroy) Creates aGtkExpressionthat callscallback_funcwhen it is evaluated. -
Method Summary
Modifier and TypeMethodDescriptionprotected CClosureExpressionasParent()Return this instance as if it were its parent type.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the CClosureExpression class.Methods inherited from class Expression
bind, evaluate, getValueType, isStatic, ref, unref, watchMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
CClosureExpression
Create a CClosureExpression instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
CClosureExpression
public CClosureExpression(Type valueType, @Nullable ClosureMarshal marshal, @Nullable Expression @Nullable [] params, @Nullable Callback callbackFunc, @Nullable ClosureNotify userDestroy) Creates a
GtkExpressionthat callscallback_funcwhen it is evaluated.This function is a variant of
ClosureExpression(Type, Closure, Expression[])that creates aGClosureby calling g_cclosure_new() with the givencallback_func,user_dataanduser_destroy.- Parameters:
valueType- the type of the value that this expression evaluates tomarshal- marshaller used for creating a closureparams- expressions for each parametercallbackFunc- callback used for creating a closureuserDestroy- destroy notify foruserData
-
-
Method Details
-
getType
Get the GType of the CClosureExpression class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Overrides:
asParentin classExpression- Returns:
- the instance as if it were its parent type
-