alternative to assert
[gtkD.git] / gtkD / src / gobject / CClosure.d
bloba94074e4fef8bfd0b8a79a1c704eb13328c3099c
1 /*
2 * This file is part of gtkD.
4 * gtkD is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * gtkD is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with gtkD; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile =
26 * outPack = gobject
27 * outFile = CClosure
28 * strct = GCClosure
29 * realStrct=
30 * ctorStrct=
31 * clss = CClosure
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - g_cclosure
40 * omit structs:
41 * omit prefixes:
42 * - g_closure_
43 * - g_source_set_closure
44 * omit code:
45 * imports:
46 * - gobject.Closure
47 * - gobject.ObjectG
48 * - gobject.Value
49 * structWrap:
50 * - GClosure* -> Closure
51 * - GObject* -> ObjectG
52 * - GValue* -> Value
53 * module aliases:
54 * local aliases:
57 module gobject.CClosure;
59 version(noAssert)
61 version(Tango)
63 import tango.io.Stdout; // use the tango loging?
67 private import gtkc.gobjecttypes;
69 private import gtkc.gobject;
72 private import gobject.Closure;
73 private import gobject.ObjectG;
74 private import gobject.Value;
79 /**
80 * Description
81 * A GClosure represents a callback supplied by the programmer. It will generally
82 * comprise a function of some kind and a marshaller used to call it. It is the
83 * reponsibility of the marshaller to convert the arguments for the invocation
84 * from GValues into a suitable form, perform the callback on the
85 * converted arguments, and transform the return value back into a GValue.
86 * In the case of C programs, a closure usually just holds a pointer to a function
87 * and maybe a data argument, and the marshaller converts between GValue
88 * and native C types. The GObject library provides the GCClosure type for this
89 * purpose. Bindings for other languages need marshallers which
90 * convert between GValues and suitable representations in the runtime
91 * of the language in order to use functions written in that languages as
92 * callbacks.
93 * Within GObject, closures play an important role in the implementation of
94 * signals. When a signal is registered, the c_marshaller argument to
95 * g_signal_new() specifies the default C marshaller for any closure which is
96 * connected to this signal. GObject provides a number of C marshallers
97 * for this purpose, see the g_cclosure_marshal_*() functions. Additional
98 * C marshallers can be generated with the glib-genmarshal utility.
99 * Closures can be explicitly connected to signals with
100 * g_signal_connect_closure(), but it usually more convenient to let GObject
101 * create a closure automatically by using one of the g_signal_connect_*()
102 * functions which take a callback function/user data pair.
103 * Using closures has a number of important advantages over a simple
104 * callback function/data pointer combination:
105 * Closures allow the callee to get the types of the callback parameters,
106 * which means that language bindings don't have to write individual glue
107 * for each callback type.
108 * The reference counting of GClosure makes it easy to handle reentrancy
109 * right; if a callback is removed while it is being invoked, the closure
110 * and it's parameters won't be freed until the invocation finishes.
111 * g_closure_invalidate() and invalidation notifiers allow callbacks to be
112 * automatically removed when the objects they point to go away.
114 public class CClosure
117 /** the main Gtk struct */
118 protected GCClosure* gCClosure;
121 public GCClosure* getCClosureStruct()
123 return gCClosure;
127 /** the main Gtk struct as a void* */
128 protected void* getStruct()
130 return cast(void*)gCClosure;
134 * Sets our main struct and passes it to the parent class
136 public this (GCClosure* gCClosure)
138 version(noAssert)
140 if ( gCClosure is null )
142 int zero = 0;
143 version(Tango)
145 Stdout("struct gCClosure is null on constructor").newline;
147 else
149 printf("struct gCClosure is null on constructor");
151 zero = zero / zero;
154 else
156 assert(gCClosure !is null, "struct gCClosure is null on constructor");
158 this.gCClosure = gCClosure;
175 * Creates a new closure which invokes callback_func with user_data as
176 * the last parameter.
177 * callback_func:
178 * the function to invoke
179 * user_data:
180 * user data to pass to callback_func
181 * destroy_data:
182 * destroy notify to be called when user_data is no longer used
183 * Returns:
184 * a new GCClosure
186 public static Closure _New(GCallback callbackFunc, void* userData, GClosureNotify destroyData)
188 // GClosure* g_cclosure_new (GCallback callback_func, gpointer user_data, GClosureNotify destroy_data);
189 return new Closure( g_cclosure_new(callbackFunc, userData, destroyData) );
193 * Creates a new closure which invokes callback_func with user_data as
194 * the first parameter.
195 * callback_func:
196 * the function to invoke
197 * user_data:
198 * user data to pass to callback_func
199 * destroy_data:
200 * destroy notify to be called when user_data is no longer used
201 * Returns:
202 * a new GCClosure
204 public static Closure _NewSwap(GCallback callbackFunc, void* userData, GClosureNotify destroyData)
206 // GClosure* g_cclosure_new_swap (GCallback callback_func, gpointer user_data, GClosureNotify destroy_data);
207 return new Closure( g_cclosure_new_swap(callbackFunc, userData, destroyData) );
211 * A variant of g_cclosure_new() which uses object as user_data and calls
212 * g_object_watch_closure() on object and the created closure. This function
213 * is useful when you have a callback closely associated with a GObject,
214 * and want the callback to no longer run after the object is is freed.
215 * callback_func:
216 * the function to invoke
217 * object:
218 * a GObject pointer to pass to callback_func
219 * Returns:
220 * a new GCClosure
222 public static Closure _NewObject(GCallback callbackFunc, ObjectG object)
224 // GClosure* g_cclosure_new_object (GCallback callback_func, GObject *object);
225 return new Closure( g_cclosure_new_object(callbackFunc, (object is null) ? null : object.getObjectGStruct()) );
229 * A variant of g_cclosure_new_swap() which uses object as user_data and calls
230 * g_object_watch_closure() on object and the created closure. This function
231 * is useful when you have a callback closely associated with a GObject,
232 * and want the callback to no longer run after the object is is freed.
233 * callback_func:
234 * the function to invoke
235 * object:
236 * a GObject pointer to pass to callback_func
237 * Returns:
238 * a new GCClosure
240 public static Closure _NewObjectSwap(GCallback callbackFunc, ObjectG object)
242 // GClosure* g_cclosure_new_object_swap (GCallback callback_func, GObject *object);
243 return new Closure( g_cclosure_new_object_swap(callbackFunc, (object is null) ? null : object.getObjectGStruct()) );
264 * A marshaller for a GCClosure with a callback of type
265 * void (*callback) (gpointer instance, gpointer user_data).
266 * closure:
267 * the GClosure to which the marshaller belongs
268 * return_value:
269 * ignored
270 * n_param_values:
272 * param_values:
273 * a GValue array holding only the instance
274 * invocation_hint:
275 * the invocation hint given as the the last argument
276 * to g_closure_invoke()
277 * marshal_data:
278 * additional data specified when registering the marshaller
280 public static void _MarshalVOID__VOID(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
282 // void g_cclosure_marshal_VOID__VOID (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
283 g_cclosure_marshal_VOID__VOID((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
287 * A marshaller for a GCClosure with a callback of type
288 * void (*callback) (gpointer instance, gboolean arg1, gpointer user_data).
289 * closure:
290 * the GClosure to which the marshaller belongs
291 * return_value:
292 * ignored
293 * n_param_values:
295 * param_values:
296 * a GValue array holding the instance and the gboolean parameter
297 * invocation_hint:
298 * the invocation hint given as the the last argument
299 * to g_closure_invoke()
300 * marshal_data:
301 * additional data specified when registering the marshaller
303 public static void _MarshalVOID__BOOLEAN(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
305 // void g_cclosure_marshal_VOID__BOOLEAN (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
306 g_cclosure_marshal_VOID__BOOLEAN((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
310 * A marshaller for a GCClosure with a callback of type
311 * void (*callback) (gpointer instance, gchar arg1, gpointer user_data).
312 * closure:
313 * the GClosure to which the marshaller belongs
314 * return_value:
315 * ignored
316 * n_param_values:
318 * param_values:
319 * a GValue array holding the instance and the gchar parameter
320 * invocation_hint:
321 * the invocation hint given as the the last argument
322 * to g_closure_invoke()
323 * marshal_data:
324 * additional data specified when registering the marshaller
326 public static void _MarshalVOID__CHAR(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
328 // void g_cclosure_marshal_VOID__CHAR (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
329 g_cclosure_marshal_VOID__CHAR((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
333 * A marshaller for a GCClosure with a callback of type
334 * void (*callback) (gpointer instance, guchar arg1, gpointer user_data).
335 * closure:
336 * the GClosure to which the marshaller belongs
337 * return_value:
338 * ignored
339 * n_param_values:
341 * param_values:
342 * a GValue array holding the instance and the guchar parameter
343 * invocation_hint:
344 * the invocation hint given as the the last argument
345 * to g_closure_invoke()
346 * marshal_data:
347 * additional data specified when registering the marshaller
349 public static void _MarshalVOID__UCHAR(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
351 // void g_cclosure_marshal_VOID__UCHAR (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
352 g_cclosure_marshal_VOID__UCHAR((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
356 * A marshaller for a GCClosure with a callback of type
357 * void (*callback) (gpointer instance, gint arg1, gpointer user_data).
358 * closure:
359 * the GClosure to which the marshaller belongs
360 * return_value:
361 * ignored
362 * n_param_values:
364 * param_values:
365 * a GValue array holding the instance and the gint parameter
366 * invocation_hint:
367 * the invocation hint given as the the last argument
368 * to g_closure_invoke()
369 * marshal_data:
370 * additional data specified when registering the marshaller
372 public static void _MarshalVOID__INT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
374 // void g_cclosure_marshal_VOID__INT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
375 g_cclosure_marshal_VOID__INT((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
379 * A marshaller for a GCClosure with a callback of type
380 * void (*callback) (gpointer instance, guint arg1, gpointer user_data).
381 * closure:
382 * the GClosure to which the marshaller belongs
383 * return_value:
384 * ignored
385 * n_param_values:
387 * param_values:
388 * a GValue array holding the instance and the guint parameter
389 * invocation_hint:
390 * the invocation hint given as the the last argument
391 * to g_closure_invoke()
392 * marshal_data:
393 * additional data specified when registering the marshaller
395 public static void _MarshalVOID__UINT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
397 // void g_cclosure_marshal_VOID__UINT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
398 g_cclosure_marshal_VOID__UINT((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
402 * A marshaller for a GCClosure with a callback of type
403 * void (*callback) (gpointer instance, glong arg1, gpointer user_data).
404 * closure:
405 * the GClosure to which the marshaller belongs
406 * return_value:
407 * ignored
408 * n_param_values:
410 * param_values:
411 * a GValue array holding the instance and the glong parameter
412 * invocation_hint:
413 * the invocation hint given as the the last argument
414 * to g_closure_invoke()
415 * marshal_data:
416 * additional data specified when registering the marshaller
418 public static void _MarshalVOID__LONG(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
420 // void g_cclosure_marshal_VOID__LONG (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
421 g_cclosure_marshal_VOID__LONG((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
425 * A marshaller for a GCClosure with a callback of type
426 * void (*callback) (gpointer instance, gulong arg1, gpointer user_data).
427 * closure:
428 * the GClosure to which the marshaller belongs
429 * return_value:
430 * ignored
431 * n_param_values:
433 * param_values:
434 * a GValue array holding the instance and the gulong parameter
435 * invocation_hint:
436 * the invocation hint given as the the last argument
437 * to g_closure_invoke()
438 * marshal_data:
439 * additional data specified when registering the marshaller
441 public static void _MarshalVOID__ULONG(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
443 // void g_cclosure_marshal_VOID__ULONG (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
444 g_cclosure_marshal_VOID__ULONG((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
448 * A marshaller for a GCClosure with a callback of type
449 * void (*callback) (gpointer instance, gint arg1, gpointer user_data) where the gint parameter denotes an enumeration type..
450 * closure:
451 * the GClosure to which the marshaller belongs
452 * return_value:
453 * ignored
454 * n_param_values:
456 * param_values:
457 * a GValue array holding the instance and the enumeration parameter
458 * invocation_hint:
459 * the invocation hint given as the the last argument
460 * to g_closure_invoke()
461 * marshal_data:
462 * additional data specified when registering the marshaller
464 public static void _MarshalVOID__ENUM(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
466 // void g_cclosure_marshal_VOID__ENUM (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
467 g_cclosure_marshal_VOID__ENUM((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
471 * A marshaller for a GCClosure with a callback of type
472 * void (*callback) (gpointer instance, gint arg1, gpointer user_data) where the gint parameter denotes a flags type
473 * denotes a flags type.
474 * closure:
475 * the GClosure to which the marshaller belongs
476 * return_value:
477 * ignored
478 * n_param_values:
480 * param_values:
481 * a GValue array holding the instance and the flags parameter
482 * invocation_hint:
483 * the invocation hint given as the the last argument
484 * to g_closure_invoke()
485 * marshal_data:
486 * additional data specified when registering the marshaller
488 public static void _MarshalVOID__FLAGS(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
490 // void g_cclosure_marshal_VOID__FLAGS (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
491 g_cclosure_marshal_VOID__FLAGS((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
495 * A marshaller for a GCClosure with a callback of type
496 * void (*callback) (gpointer instance, gfloat arg1, gpointer user_data).
497 * closure:
498 * the GClosure to which the marshaller belongs
499 * return_value:
500 * ignored
501 * n_param_values:
503 * param_values:
504 * a GValue array holding the instance and the gfloat parameter
505 * invocation_hint:
506 * the invocation hint given as the the last argument
507 * to g_closure_invoke()
508 * marshal_data:
509 * additional data specified when registering the marshaller
511 public static void _MarshalVOID__FLOAT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
513 // void g_cclosure_marshal_VOID__FLOAT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
514 g_cclosure_marshal_VOID__FLOAT((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
518 * A marshaller for a GCClosure with a callback of type
519 * void (*callback) (gpointer instance, gdouble arg1, gpointer user_data).
520 * closure:
521 * the GClosure to which the marshaller belongs
522 * return_value:
523 * ignored
524 * n_param_values:
526 * param_values:
527 * a GValue array holding the instance and the gdouble parameter
528 * invocation_hint:
529 * the invocation hint given as the the last argument
530 * to g_closure_invoke()
531 * marshal_data:
532 * additional data specified when registering the marshaller
534 public static void _MarshalVOID__DOUBLE(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
536 // void g_cclosure_marshal_VOID__DOUBLE (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
537 g_cclosure_marshal_VOID__DOUBLE((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
541 * A marshaller for a GCClosure with a callback of type
542 * void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data).
543 * closure:
544 * the GClosure to which the marshaller belongs
545 * return_value:
546 * ignored
547 * n_param_values:
549 * param_values:
550 * a GValue array holding the instance and the gchar* parameter
551 * invocation_hint:
552 * the invocation hint given as the the last argument
553 * to g_closure_invoke()
554 * marshal_data:
555 * additional data specified when registering the marshaller
557 public static void _MarshalVOID__STRING(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
559 // void g_cclosure_marshal_VOID__STRING (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
560 g_cclosure_marshal_VOID__STRING((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
564 * A marshaller for a GCClosure with a callback of type
565 * void (*callback) (gpointer instance, GParamSpec *arg1, gpointer user_data).
566 * closure:
567 * the GClosure to which the marshaller belongs
568 * return_value:
569 * ignored
570 * n_param_values:
572 * param_values:
573 * a GValue array holding the instance and the GParamSpec* parameter
574 * invocation_hint:
575 * the invocation hint given as the the last argument
576 * to g_closure_invoke()
577 * marshal_data:
578 * additional data specified when registering the marshaller
580 public static void _MarshalVOID__PARAM(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
582 // void g_cclosure_marshal_VOID__PARAM (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
583 g_cclosure_marshal_VOID__PARAM((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
587 * A marshaller for a GCClosure with a callback of type
588 * void (*callback) (gpointer instance, GBoxed *arg1, gpointer user_data).
589 * closure:
590 * the GClosure to which the marshaller belongs
591 * return_value:
592 * ignored
593 * n_param_values:
595 * param_values:
596 * a GValue array holding the instance and the GBoxed* parameter
597 * invocation_hint:
598 * the invocation hint given as the the last argument
599 * to g_closure_invoke()
600 * marshal_data:
601 * additional data specified when registering the marshaller
603 public static void _MarshalVOID__BOXED(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
605 // void g_cclosure_marshal_VOID__BOXED (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
606 g_cclosure_marshal_VOID__BOXED((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
610 * A marshaller for a GCClosure with a callback of type
611 * void (*callback) (gpointer instance, gpointer arg1, gpointer user_data).
612 * closure:
613 * the GClosure to which the marshaller belongs
614 * return_value:
615 * ignored
616 * n_param_values:
618 * param_values:
619 * a GValue array holding the instance and the gpointer parameter
620 * invocation_hint:
621 * the invocation hint given as the the last argument
622 * to g_closure_invoke()
623 * marshal_data:
624 * additional data specified when registering the marshaller
626 public static void _MarshalVOID__POINTER(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
628 // void g_cclosure_marshal_VOID__POINTER (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
629 g_cclosure_marshal_VOID__POINTER((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
633 * A marshaller for a GCClosure with a callback of type
634 * void (*callback) (gpointer instance, GOBject *arg1, gpointer user_data).
635 * closure:
636 * the GClosure to which the marshaller belongs
637 * return_value:
638 * ignored
639 * n_param_values:
641 * param_values:
642 * a GValue array holding the instance and the GObject* parameter
643 * invocation_hint:
644 * the invocation hint given as the the last argument
645 * to g_closure_invoke()
646 * marshal_data:
647 * additional data specified when registering the marshaller
649 public static void _MarshalVOID__OBJECT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
651 // void g_cclosure_marshal_VOID__OBJECT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
652 g_cclosure_marshal_VOID__OBJECT((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
656 * A marshaller for a GCClosure with a callback of type
657 * void (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data).
658 * closure:
659 * the GClosure to which the marshaller belongs
660 * return_value:
661 * ignored
662 * n_param_values:
664 * param_values:
665 * a GValue array holding instance, arg1 and arg2
666 * invocation_hint:
667 * the invocation hint given as the the last argument
668 * to g_closure_invoke()
669 * marshal_data:
670 * additional data specified when registering the marshaller
672 public static void _MarshalSTRING__OBJECT_POINTER(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
674 // void g_cclosure_marshal_STRING__OBJECT_POINTER (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
675 g_cclosure_marshal_STRING__OBJECT_POINTER((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
679 * A marshaller for a GCClosure with a callback of type
680 * void (*callback) (gpointer instance, guint arg1, gpointer arg2, gpointer user_data).
681 * closure:
682 * the GClosure to which the marshaller belongs
683 * return_value:
684 * ignored
685 * n_param_values:
687 * param_values:
688 * a GValue array holding instance, arg1 and arg2
689 * invocation_hint:
690 * the invocation hint given as the the last argument
691 * to g_closure_invoke()
692 * marshal_data:
693 * additional data specified when registering the marshaller
695 public static void _MarshalVOID__UINT_POINTER(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
697 // void g_cclosure_marshal_VOID__UINT_POINTER (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
698 g_cclosure_marshal_VOID__UINT_POINTER((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);
702 * A marshaller for a GCClosure with a callback of type
703 * gboolean (*callback) (gpointer instance, gint arg1, gpointer user_data) where the gint parameter
704 * denotes a flags type.
705 * closure:
706 * the GClosure to which the marshaller belongs
707 * return_value:
708 * a GValue which can store the returned gboolean
709 * n_param_values:
711 * param_values:
712 * a GValue array holding instance and arg1
713 * invocation_hint:
714 * the invocation hint given as the the last argument
715 * to g_closure_invoke()
716 * marshal_data:
717 * additional data specified when registering the marshaller
719 public static void _MarshalBOOLEAN__FLAGS(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)
721 // void g_cclosure_marshal_BOOLEAN__FLAGS (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data);
722 g_cclosure_marshal_BOOLEAN__FLAGS((closure is null) ? null : closure.getClosureStruct(), (returnValue is null) ? null : returnValue.getValueStruct(), nParamValues, (paramValues is null) ? null : paramValues.getValueStruct(), invocationHint, marshalData);