Package ch.bailu.gtk.gobject
Klasse CClosure
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gobject.CClosure
- Alle implementierten Schnittstellen:
PointerInterface
A #GCClosure is a specialization of #GClosure for C function callbacks.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interfacestatic interface -
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Closure_new(CClosure.OnCallback callback_func, Pointer user_data, CClosure.OnClosureNotify destroy_data) Creates a new closure which invokes @callback_func with @user_data as
the last parameter.static ClassHandlerthe callback functionstatic voidmarshalBooleanBoxedBoxed(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with handlers that
take two boxed pointers as arguments and return a boolean.static voidmarshalBooleanFlags(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with handlers that
take a flags type as an argument and return a boolean.static voidmarshalGeneric(Closure closure, Value return_gvalue, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A generic marshaller function implemented via
[libffi](http://sourceware.org/libffi/).static voidmarshalStringObjectPointer(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with handlers that
take a #GObject and a pointer and produce a string.static voidmarshalVoidBoolean(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
boolean argument.static voidmarshalVoidBoxed(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
argument which is any boxed pointer type.static voidmarshalVoidChar(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
character argument.static voidmarshalVoidDouble(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with one
double-precision floating point argument.static voidmarshalVoidEnum(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
argument with an enumerated type.static voidmarshalVoidFlags(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
argument with a flags types.static voidmarshalVoidFloat(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with one
single-precision floating point argument.static voidmarshalVoidInt(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
integer argument.static voidmarshalVoidLong(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with with a single
long integer argument.static voidmarshalVoidObject(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
#GObject argument.static voidmarshalVoidParam(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
argument of type #GParamSpec.static voidmarshalVoidPointer(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single raw
pointer argument type.static voidmarshalVoidString(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single string
argument.static voidmarshalVoidUchar(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
unsigned character argument.static voidmarshalVoidUint(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with with a single
unsigned integer argument.static voidmarshalVoidUintPointer(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with an unsigned int
and a pointer as arguments.static voidmarshalVoidUlong(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
unsigned long integer argument.static voidmarshalVoidVariant(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
#GVariant argument.static voidmarshalVoidVoid(Closure closure, Value return_value, int n_param_values, Value param_values, Pointer invocation_hint, Pointer marshal_data) A #GClosureMarshal function for use with signals with no arguments.static ClosurenewObject(CClosure.OnCallback callback_func, Object object) A variant of g_cclosure_new() which uses @object as @user_data and
calls g_object_watch_closure() on @object and the created
closure.static ClosurenewObjectSwap(CClosure.OnCallback callback_func, Object object) A variant of g_cclosure_new_swap() which uses @object as @user_data
and calls g_object_watch_closure() on @object and the created
closure.static ClosurenewSwap(CClosure.OnCallback callback_func, Pointer user_data, CClosure.OnClosureNotify destroy_data) Creates a new closure which invokes @callback_func with @user_data as
the first parameter.voidsetFieldCallback(Pointer callback) the callback functionVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
CLOSURE
the #GClosure
Private field: direct-type- Siehe auch:
-
CALLBACK
the callback function- Siehe auch:
-
-
Konstruktordetails
-
CClosure
-
CClosure
public CClosure()
-
-
Methodendetails
-
getClassHandler
-
setFieldCallback
the callback function -
getFieldCallback
the callback function -
marshalBooleanBoxedBoxed
public static void marshalBooleanBoxedBoxed(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with handlers that
take two boxed pointers as arguments and return a boolean. If you
have such a signal, you will probably also need to use an
accumulator, such as g_signal_accumulator_true_handled().- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalBooleanFlags
public static void marshalBooleanFlags(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with handlers that
take a flags type as an argument and return a boolean. If you have
such a signal, you will probably also need to use an accumulator,
such as g_signal_accumulator_true_handled().- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalStringObjectPointer
public static void marshalStringObjectPointer(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with handlers that
take a #GObject and a pointer and produce a string. It is highly
unlikely that your signal handler fits this description.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidBoolean
public static void marshalVoidBoolean(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
boolean argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidBoxed
public static void marshalVoidBoxed(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
argument which is any boxed pointer type.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidChar
public static void marshalVoidChar(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
character argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidDouble
public static void marshalVoidDouble(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with one
double-precision floating point argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidEnum
public static void marshalVoidEnum(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
argument with an enumerated type.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidFlags
public static void marshalVoidFlags(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
argument with a flags types.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidFloat
public static void marshalVoidFloat(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with one
single-precision floating point argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidInt
public static void marshalVoidInt(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
integer argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidLong
public static void marshalVoidLong(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with with a single
long integer argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidObject
public static void marshalVoidObject(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
#GObject argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidParam
public static void marshalVoidParam(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
argument of type #GParamSpec.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidPointer
public static void marshalVoidPointer(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single raw
pointer argument type.
If it is possible, it is better to use one of the more specific
functions such as g_cclosure_marshal_VOID__OBJECT() or
g_cclosure_marshal_VOID__OBJECT().- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidString
public static void marshalVoidString(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single string
argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidUchar
public static void marshalVoidUchar(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
unsigned character argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidUint
public static void marshalVoidUint(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with with a single
unsigned integer argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidUintPointer
public static void marshalVoidUintPointer(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with an unsigned int
and a pointer as arguments.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidUlong
public static void marshalVoidUlong(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
unsigned long integer argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidVariant
public static void marshalVoidVariant(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with a single
#GVariant argument.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalVoidVoid
public static void marshalVoidVoid(@Nonnull Closure closure, @Nonnull Value return_value, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A #GClosureMarshal function for use with signals with no arguments.- Parameter:
closure- A #GClosure.return_value- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
marshalGeneric
public static void marshalGeneric(@Nonnull Closure closure, @Nonnull Value return_gvalue, int n_param_values, @Nonnull Value param_values, @Nullable Pointer invocation_hint, @Nullable Pointer marshal_data) A generic marshaller function implemented via
[libffi](http://sourceware.org/libffi/).
Normally this function is not passed explicitly to g_signal_new(),
but used automatically by GLib when specifying a %NULL marshaller.- Parameter:
closure- A #GClosure.return_gvalue- A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.n_param_values- The length of the @param_values array.param_values- An array of #GValues holding the arguments on which to invoke the callback of closure.invocation_hint- The invocation hint given as the last argument to g_closure_invoke().marshal_data- Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
-
_new
public static Closure _new(CClosure.OnCallback callback_func, @Nullable Pointer user_data, CClosure.OnClosureNotify destroy_data) Creates a new closure which invokes @callback_func with @user_data as
the last parameter.
@destroy_data will be called as a finalize notifier on the #GClosure.- Parameter:
callback_func- the function to invokeuser_data- user data to pass to @callback_funcdestroy_data- destroy notify to be called when @user_data is no longer used- Gibt zurück:
- a floating reference to a new #GCClosure
-
newObject
A variant of g_cclosure_new() which uses @object as @user_data and
calls g_object_watch_closure() on @object and the created
closure. This function is useful when you have a callback closely
associated with a #GObject, and want the callback to no longer run
after the object is is freed.- Parameter:
callback_func- the function to invokeobject- a #GObject pointer to pass to @callback_func- Gibt zurück:
- a new #GCClosure
-
newObjectSwap
A variant of g_cclosure_new_swap() which uses @object as @user_data
and calls g_object_watch_closure() on @object and the created
closure. This function is useful when you have a callback closely
associated with a #GObject, and want the callback to no longer run
after the object is is freed.- Parameter:
callback_func- the function to invokeobject- a #GObject pointer to pass to @callback_func- Gibt zurück:
- a new #GCClosure
-
newSwap
public static Closure newSwap(CClosure.OnCallback callback_func, @Nullable Pointer user_data, CClosure.OnClosureNotify destroy_data) Creates a new closure which invokes @callback_func with @user_data as
the first parameter.
@destroy_data will be called as a finalize notifier on the #GClosure.- Parameter:
callback_func- the function to invokeuser_data- user data to pass to @callback_funcdestroy_data- destroy notify to be called when @user_data is no longer used- Gibt zurück:
- a floating reference to a new #GCClosure
-