1 (in-package :gobject.ffi)
3 (defcfun (g-type-fundamental "g_type_fundamental") g-type-designator
4 "Returns the fundamental type which is the ancestor of @code{type}.
8 \(g-type-fundamental \"GtkWindowType\")
10 \(g-type-fundamental \"GtkLabel\")
13 @arg[type]{GType designator (see @class{g-type-designator})}
14 @return{GType designator}"
15 (type g-type-designator))
17 (defcfun (%g-type-init "g_type_init") :void)
19 (at-init () (%g-type-init))
21 (defcfun g-type-parent g-type-designator
22 "Returns the parent of a GType. @see{g-type-chilren}
26 \(g-type-parent \"GtkLabel\")
29 @arg[type]{GType designator (see @class{g-type-designator})}
30 @return{GType designator}"
31 (type g-type-designator))
33 (defcfun g-type-depth :uint
34 "Returns the length of the ancestry of @code{type}. This includes the @code{type} itself, so that e.g. a fundamental type has depth 1.
38 \(g-type-depth \"GtkLabel\")
41 @arg[type]{GType designator (see @class{g-type-designator})}
43 (type g-type-designator))
45 (defcfun g-type-next-base g-type-designator
46 "Determines the type that is derived directly from @code{root-type} which is also a base class of @code{leaf-type}.
50 \(g-type-next-base \"GtkButton\" \"GtkWidget\")
53 @arg[leaf-type]{GType designator (see @class{g-type-designator})}
54 @arg[root-type]{GType designator}
55 @return{GType designator}"
56 (leaf-type g-type-designator)
57 (root-type g-type-designator))
59 (defcfun g-type-is-a :boolean
60 "If @code{is-a-type} is a derivable type, check whether type is a descendant of @code{is-a-type}. If @code{is-a-type} is an interface, check whether type conforms to it.
64 \(g-type-is-a \"GtkButton\" \"GtkWidget\")
66 \(g-type-is-a \"GtkButton\" \"AtkImplementorIface\")
68 \(g-type-is-a \"GtkButton\" \"GtkLabel\")
71 @arg[type]{GType designator (see @class{g-type-designator})}
72 @arg[is-a-type]{GType designator}
74 (type g-type-designator)
75 (is-a-type g-type-designator))
77 (defcfun (%g-type-children "g_type_children") (:pointer g-type)
78 (type g-type-designator)
79 (n-children (:pointer :uint)))
81 (defcfun (%g-type-interface-prerequisites "g_type_interface_prerequisites") (:pointer g-type)
82 (type g-type-designator)
83 (n-interface-prerequisites (:pointer :uint)))
85 (defcfun g-strv-get-type g-type-designator
86 "Returns the type designator (see @class{g-type-designator}) for GStrv type. As a side effect, ensures that the type is registered.")
88 (at-init nil (g-strv-get-type))
90 (defcfun g-closure-get-type g-type-designator
91 "Returns the type designator (see @class{g-type-designator}) for GClosure type. As a side effect, ensure that the type is registered.")
93 (at-init nil (g-closure-get-type))
95 (defcfun (%g-type-interfaces "g_type_interfaces") (:pointer g-type)
96 (type g-type-designator)
97 (n-interfaces (:pointer :uint)))
99 (defcstruct g-type-interface
100 (:type g-type-designator)
101 (:instance-type g-type-designator))
102 (defctype g-type-interface (:struct g-type-interface))
104 (defcstruct g-type-class
105 (:type g-type-designator))
106 (defctype g-type-class (:struct g-type-class))
108 (defcstruct g-type-instance
109 (:class (:pointer g-type-class)))
110 (defctype g-type-instance (:struct g-type-instance))
112 (defcstruct g-type-info
113 (:class-size :uint16)
114 (:base-init-fn :pointer)
115 (:base-finalize-fn :pointer)
116 (:class-init-fn :pointer)
117 (:class-finalize-fn :pointer)
118 (:class-data :pointer)
119 (:instance-size :uint16)
120 (:n-preallocs :uint16)
121 (:instance-init-fn :pointer)
122 (:value-table :pointer))
123 (defctype g-type-info (:struct g-type-info))
125 (defcstruct g-type-query
126 (:type g-type-designator)
127 (:type-name (:string :free-from-foreign nil))
129 (:instance-size :uint))
130 (defctype g-type-query (:struct g-type-query))
132 (defbitfield g-type-fundamental-flags
138 (defcstruct g-type-fundamental-info
139 (:type-flags g-type-fundamental-flags))
140 (defctype g-type-fundamental-info (:struct g-type-fundamental-info))
142 (defcstruct g-interface-info
143 (:interface-init :pointer)
144 (:interface-finalize :pointer)
145 (:interface-data :pointer))
146 (defctype g-interface-info (:struct g-interface-info))
148 (defcstruct g-type-value-table
149 (:value-init :pointer)
150 (:value-free :pointer)
151 (:value-copy :pointer)
152 (:value-peek-pointer :pointer)
153 (:collect-format (:string :free-from-foreign nil :free-to-foreign nil))
154 (:collect-value :pointer)
155 (:lcopy-format (:string :free-from-foreign nil :free-to-foreign nil))
156 (:lcopy-value :pointer))
157 (defctype g-type-value-table (:struct g-type-value-table))
159 (defbitfield g-type-flags
160 (:abstract #. (ash 1 4))
163 (defcstruct %g-object
164 (:type-instance g-type-instance)
167 (defctype %g-object (:struct %g-object))
169 (defctype %g-initially-unowned (:struct %g-object))
171 (defcstruct g-object-class
172 (:type-class g-type-class)
173 (:construct-properties :pointer)
174 (:constructor :pointer)
175 (:set-property :pointer)
176 (:get-property :pointer)
179 (:dispatch-properties-changed :pointer)
181 (:constructed :pointer)
182 (:pdummy :pointer :count 7))
183 (defctype g-object-class (:struct g-object-class))
185 (defbitfield g-param-flags
195 (defcstruct g-param-spec
196 (:type-instance g-type-instance)
197 (:name (:string :free-from-foreign nil :free-to-foreign nil))
198 (:flags g-param-flags)
199 (:value-type g-type-designator)
200 (:owner-type g-type-designator))
201 (defctype g-param-spec (:struct g-param-spec))
203 (defcunion g-value-data
213 (defctype g-value-data (:union g-value-data))
216 (:type g-type-designator)
217 (:data g-value-data :count 2))
218 (defctype g-value (:struct g-value))
220 (defcstruct g-object-construct-param
221 (:param-spec (:pointer g-param-spec))
222 (:value (:pointer g-value)))
223 (defctype g-object-construct-param (:struct g-object-construct-param))
225 (defcstruct g-parameter
226 (:name (:string :free-from-foreign nil :free-to-foreign nil))
228 (defctype g-parameter (:struct g-parameter))
230 (defcstruct g-enum-value
232 (:name (:string :free-from-foreign nil :free-to-foreign nil))
233 (:nick (:string :free-from-foreign nil :free-to-foreign nil)))
234 (defctype g-enum-value (:struct g-enum-value))
236 (defcstruct g-enum-class
237 (:type-class g-type-class)
241 (:values (:pointer g-enum-value)))
242 (defctype g-enum-class (:struct g-enum-class))
244 (defcstruct g-flags-value
246 (:name (:string :free-from-foreign nil :free-to-foreign nil))
247 (:nick (:string :free-from-foreign nil :free-to-foreign nil)))
248 (defctype g-flags-value (:struct g-flags-value))
250 (defcstruct g-flags-class
251 (:type-class g-type-class)
254 (:values (:pointer g-flags-value)))
255 (defctype g-flags-class (:struct g-flags-class))
257 (defcstruct g-param-spec-boolean
258 (:parent-instance g-param-spec)
259 (:default-value :boolean))
260 (defctype g-param-spec-boolean (:struct g-param-spec-boolean))
262 (defcstruct g-param-spec-char
263 (:parent-instance g-param-spec)
266 (:default-value :int8))
267 (defctype g-param-spec-char (:struct g-param-spec-char))
269 (defcstruct g-param-spec-uchar
270 (:parent-instance g-param-spec)
273 (:default-value :uint8))
274 (defctype g-param-spec-uchar (:struct g-param-spec-uchar))
276 (defcstruct g-param-spec-int
277 (:parent-instance g-param-spec)
280 (:default-value :int))
281 (defctype g-param-spec-int (:struct g-param-spec-int))
283 (defcstruct g-param-spec-uint
284 (:parent-instance g-param-spec)
287 (:default-value :uint))
288 (defctype g-param-spec-uint (:struct g-param-spec-uint))
290 (defcstruct g-param-spec-long
291 (:parent-instance g-param-spec)
294 (:default-value :ulong))
295 (defctype g-param-spec-long (:struct g-param-spec-long))
297 (defcstruct g-param-spec-ulong
298 (:parent-instance g-param-spec)
301 (:default-value :ulong))
302 (defctype g-param-spec-ulong (:struct g-param-spec-ulong))
304 (defcstruct g-param-spec-int64
305 (:parent-instance g-param-spec)
308 (:default-value :uint64))
309 (defctype g-param-spec-int64 (:struct g-param-spec-int64))
311 (defcstruct g-param-spec-uint64
312 (:parent-instance g-param-spec)
315 (:default-value :uint64))
316 (defctype g-param-spec-uint64 (:struct g-param-spec-uint64))
318 (defcstruct g-param-spec-float
319 (:parent-instance g-param-spec)
322 (:default-value :float)
324 (defctype g-param-spec-float (:struct g-param-spec-float))
326 (defcstruct g-param-spec-double
327 (:parent-instance g-param-spec)
330 (:default-value :double)
332 (defctype g-param-spec-double (:struct g-param-spec-double))
334 (defcstruct g-param-spec-enum
335 (:parent-instance g-param-spec)
336 (:enum-class (:pointer g-enum-class))
337 (:default-value :int))
338 (defctype g-param-spec-enum (:struct g-param-spec-enum))
340 (defcstruct g-param-spec-flags
341 (:parent-instance g-param-spec)
342 (:flags-class (:pointer g-flags-class))
343 (:default-value :uint))
344 (defctype g-param-spec-flags (:struct g-param-spec-flags))
346 (defcstruct g-param-spec-string
347 (:parent-instance g-param-spec)
348 (:default-value (:string :free-to-foreign nil :free-from-foreign nil))
349 (:cset-first (:string :free-to-foreign nil :free-from-foreign nil))
350 (:cset-nth (:string :free-to-foreign nil :free-from-foreign nil))
352 (:flags-for-null :uint))
353 (defctype g-param-spec-string (:struct g-param-spec-string))
355 (defcstruct g-param-spec-param
356 (:parent-instance g-param-spec))
357 (defctype g-param-spec-param (:struct g-param-spec-param))
359 (defcstruct g-param-spec-boxed
360 (:parent-instance g-param-spec))
361 (defctype g-param-spec-boxed (:struct g-param-spec-boxed))
363 (defcstruct g-param-spec-pointer
364 (:parent-instance g-param-spec))
365 (defctype g-param-spec-pointer (:struct g-param-spec-pointer))
367 (defcstruct g-param-spec-object
368 (:parent-instance g-param-spec))
369 (defctype g-param-spec-object (:struct g-param-spec-object))
371 (defcstruct g-param-spec-value-array
372 (:parent-instance g-param-spec)
373 (:element-spec (:pointer g-param-spec))
374 (:fixed-n-elements :uint))
375 (defctype g-param-spec-value-array (:struct g-param-spec-value-array))
377 (defcstruct g-param-spec-g-type
378 (:parent-instance g-param-spec)
379 (:types-root g-type-designator))
380 (defctype g-param-spec-g-type (:struct g-param-spec-g-type))
382 (defcstruct g-param-spec-class
383 (:type-class g-type-class)
384 (:value-type g-type-designator)
386 (:value-set-default :pointer)
387 (:value-validate :pointer)
388 (:values-cmp :pointer))
389 (defctype g-param-spec-class (:struct g-param-spec-class))
391 (defcstruct g-closure
392 (:private-data :uint32)
395 (:notifiers :pointer))
396 (defctype g-closure (:struct g-closure))
398 (defcfun g-type-class-ref (:pointer g-type-class)
399 (type g-type-designator))
401 (defcfun g-type-class-unref :void
402 (class (:pointer g-type-class)))
404 (defcfun g-type-class-add-private :void
405 (class (:pointer g-type-class))
406 (private-size gsize))
408 (defcfun g-type-register-static g-type-designator
409 (parent-type g-type-designator)
411 (info (:pointer g-type-info))
412 (flags g-type-flags))
414 (defcfun g-type-register-static-simple g-type-designator
415 (parent-type g-type-designator)
418 (class-init :pointer)
419 (instance-size :uint)
420 (instance-init :pointer)
421 (flags g-type-flags))
423 (defcfun g-type-add-interface-static :void
424 (instance-type g-type-designator)
425 (interface-type g-type-designator)
426 (info (:pointer g-interface-info)))
428 (defcfun g-type-interface-add-prerequisite :void
429 (interface-type g-type-designator)
430 (prerequisite-type g-type-designator))
432 (defcfun g-type-query :void
433 (type g-type-designator)
434 (query (:pointer g-type-query)))
436 (defcfun g-type-default-interface-ref :pointer
437 (type g-type-designator))
439 (defcfun g-type-default-interface-unref :void
440 (interface :pointer))
442 (defcfun g-boxed-copy :pointer
443 (boxed-type g-type-designator)
444 (src-boxed :pointer))
446 (defcfun g-boxed-free :void
447 (boxed-type g-type-designator)
450 (defcfun g-boxed-type-register-static g-type-designator
455 (defcfun g-pointer-type-register-static g-type-designator
458 (defcfun g-closure-ref (:pointer g-closure)
459 (closure (:pointer g-closure)))
461 (defcfun g-closure-sink :void
462 (closure (:pointer g-closure)))
464 (defcfun g-closure-unref :void
465 (closure (:pointer g-closure)))
467 (defcfun g-closure-invalidate :void
468 (closure (:pointer g-closure)))
470 (defcfun g-closure-add-finalize-notifier :void
471 (closure (:pointer g-closure))
472 (notify-data :pointer)
473 (notify-func :pointer))
475 (defcfun g-closure-add-invalidate-notifier :void
476 (closure (:pointer g-closure))
477 (notify-data :pointer)
478 (notify-func :pointer))
480 (defcfun g-closure-new-simple (:pointer g-closure)
481 (sizeof-closure :uint)
484 (defcfun g-closure-set-marshal :void
485 (closure (:pointer g-closure))
488 (defcfun g-enum-register-static g-type-designator
490 (static-values (:pointer g-enum-value)))
492 (defcfun g-flags-register-static g-type-designator
494 (static-values (:pointer g-flags-value)))
496 (defcfun g-param-spec-boolean (:pointer g-param-spec-boolean)
500 (default-value :boolean)
501 (flags g-param-flags))
503 (defcfun g-value-set-boolean :void
504 (g-value (:pointer g-value))
505 (new-value :boolean))
507 (defcfun g-value-get-boolean :boolean
508 (g-value (:pointer g-value)))
510 (defcfun g-param-spec-char (:pointer g-param-spec-char)
516 (default-value :int8)
517 (flags g-param-flags))
519 (defcfun g-value-set-char :void
520 (g-value (:pointer g-value))
523 (defcfun g-value-get-char :char
524 (g-value (:pointer g-value)))
526 (defcfun g-param-spec-uchar (:pointer g-param-spec-uchar)
532 (default-value :uint8)
533 (flags g-param-flags))
535 (defcfun g-value-set-uchar :void
536 (g-value (:pointer g-value))
539 (defcfun g-value-get-uchar :uchar
540 (g-value (:pointer g-value)))
542 (defcfun g-param-spec-int (:pointer g-param-spec-int)
549 (flags g-param-flags))
551 (defcfun g-value-set-int :void
552 (g-value (:pointer g-value))
555 (defcfun g-value-get-int :int
556 (g-value (:pointer g-value)))
558 (defcfun g-param-spec-uint (:pointer g-param-spec-uint)
564 (default-value :uint)
565 (flags g-param-flags))
567 (defcfun g-value-set-uint :void
568 (g-value (:pointer g-value))
571 (defcfun g-value-get-uint :uint
572 (g-value (:pointer g-value)))
574 (defcfun g-param-spec-long (:pointer g-param-spec-long)
580 (default-value :long)
581 (flags g-param-flags))
583 (defcfun g-value-set-long :void
584 (g-value (:pointer g-value))
587 (defcfun g-value-get-long :long
588 (g-value (:pointer g-value)))
590 (defcfun g-param-spec-ulong (:pointer g-param-spec-ulong)
596 (default-value :ulong)
597 (flags g-param-flags))
599 (defcfun g-value-set-ulong :void
600 (g-value (:pointer g-value))
603 (defcfun g-value-get-ulong :ulong
604 (g-value (:pointer g-value)))
606 (defcfun g-param-spec-int64 (:pointer g-param-spec-int64)
612 (default-value :int64)
613 (flags g-param-flags))
615 (defcfun g-value-set-int64 :void
616 (g-value (:pointer g-value))
619 (defcfun g-value-get-int64 :int64
620 (g-value (:pointer g-value)))
622 (defcfun g-param-spec-uint64 (:pointer g-param-spec-uint64)
628 (default-value :uint64)
629 (flags g-param-flags))
631 (defcfun g-value-set-uint64 :void
632 (g-value (:pointer g-value))
635 (defcfun g-value-get-uint64 :uint64
636 (g-value (:pointer g-value)))
638 (defcfun g-param-spec-float (:pointer g-param-spec-float)
644 (default-value :float)
645 (flags g-param-flags))
647 (defcfun g-value-set-float :void
648 (g-value (:pointer g-value))
651 (defcfun g-value-get-float :float
652 (g-value (:pointer g-value)))
654 (defcfun g-param-spec-double (:pointer g-param-spec-double)
660 (default-value :double)
661 (flags g-param-flags))
663 (defcfun g-value-set-double :void
664 (g-value (:pointer g-value))
667 (defcfun g-value-get-double :double
668 (g-value (:pointer g-value)))
670 (defcfun g-param-spec-enum (:pointer g-param-spec-enum)
674 (enum-type g-type-designator)
676 (flags g-param-flags))
678 (defcfun g-value-set-enum :void
679 (g-value (:pointer g-value))
682 (defcfun g-value-get-enum :int
683 (g-value (:pointer g-value)))
685 (defcfun g-param-spec-flags (:pointer g-param-spec-flags)
689 (flags-type g-type-designator)
691 (flags g-param-flags))
693 (defcfun g-value-set-flags :void
694 (g-value (:pointer g-value))
697 (defcfun g-value-get-flags :int
698 (g-value (:pointer g-value)))
700 (defcfun g-param-spec-string (:pointer g-param-spec-string)
704 (default-value :string)
705 (flags g-param-flags))
707 (defcfun g-value-set-string :void
708 (g-value (:pointer g-value))
711 (defcfun g-value-get-string (:string :free-from-foreign nil)
712 (g-value (:pointer g-value)))
714 (defcfun g-param-spec-param (:pointer g-param-spec-param)
718 (param-type g-type-designator)
719 (flags g-param-flags))
721 (defcfun g-value-set-param :void
722 (g-value (:pointer g-value))
723 (new-value (:pointer g-param-spec)))
725 (defcfun g-value-get-param (:pointer g-param-spec)
726 (g-value (:pointer g-value)))
728 (defcfun g-param-spec-boxed (:pointer g-param-spec-boxed)
732 (boxed-type g-type-designator)
733 (flags g-param-flags))
735 (defcfun g-value-set-boxed :void
736 (g-value (:pointer g-value))
737 (new-value :pointer))
739 (defcfun g-value-take-boxed :void
740 (g-value (:pointer g-value))
741 (new-value :pointer))
743 (defcfun g-value-get-boxed :pointer
744 (g-value (:pointer g-value)))
746 (defcfun g-param-spec-pointer (:pointer g-param-spec-pointer)
750 (flags g-param-flags))
752 (defcfun g-value-set-pointer :void
753 (g-value (:pointer g-value))
754 (new-value :pointer))
756 (defcfun g-value-get-pointer :pointer
757 (g-value (:pointer g-value)))
759 (defcfun g-param-spec-object (:pointer g-param-spec-object)
763 (object-type g-type-designator)
764 (flags g-param-flags))
766 (defcfun g-value-set-object :void
767 (g-value (:pointer g-value))
768 (new-value :pointer))
770 (defcfun g-value-get-object :pointer
771 (g-value (:pointer g-value)))
773 (defcfun g-param-spec-value-array (:pointer g-param-spec-value-array)
777 (element-spec (:pointer g-param-spec))
778 (flags g-param-flags))
780 (defcfun (g-param-spec-g-type "g_param_spec_gtype") (:pointer g-param-spec-g-type)
784 (types-root g-type-designator)
785 (flags g-param-flags))
787 (defcfun (g-value-set-g-type "g_value_set_gtype") :void
788 (g-value (:pointer g-value))
789 (new-value g-type-designator))
791 (defcfun (g-value-get-g-type "g_value_get_gtype") g-type-designator
792 (g-value (:pointer g-value)))
794 (defcfun g-param-spec-ref-sink (:pointer g-param-spec)
795 (param-spec (:pointer g-param-spec)))
797 (defcfun g-param-spec-unref :void
798 (param-spec (:pointer g-param-spec)))
800 (defcfun g-param-value-set-default :void
801 (param-spec (:pointer g-param-spec))
802 (value (:pointer g-value)))
804 (defcfun g-param-value-defaults :boolean
805 (param-spec (:pointer g-param-spec))
806 (value (:pointer g-value)))
808 (defcfun g-param-value-validate :boolean
809 (param-spec (:pointer g-param-spec))
810 (value (:pointer g-value)))
812 (defcfun g-param-spec-get-name :string
813 (param-spec (:pointer g-param-spec)))
815 (defcfun g-param-spec-get-nick :string
816 (param-spec (:pointer g-param-spec)))
818 (defcfun g-param-spec-get-blurb :string
819 (param-spec (:pointer g-param-spec)))
821 (defcfun g-value-init (:pointer g-value)
822 "Initializes the GValue @code{value} with the default value of @code{type}
824 @arg[value]{a C pointer to the GValue structure}
825 @arg[type]{an integer specifying the GType}"
826 (value (:pointer g-value))
827 (type g-type-designator))
829 (defcfun g-value-copy :void
830 (src-value (:pointer g-value))
831 (dst-value (:pointer g-value)))
833 (defcfun g-value-reset (:pointer g-value)
834 (value (:pointer g-value)))
836 (defcfun g-value-unset (:pointer g-value)
837 "Clears the current value in @code{value} and \"unsets\" the type, releasing all resources associated with this GValue. An unset value is the same as an unitialized GValue.
839 @arg[value]{a C pointer to the GValue structure}"
840 (value (:pointer g-value)))
842 (defcfun g-value-set-instance :void
843 (value (:pointer g-value))
846 (defcfun g-strdup-value-contents :string
847 (value (:pointer g-value)))
849 (defcfun g-object-class-install-property :void
850 (class (:pointer g-object-class))
852 (param-spec (:pointer g-param-spec)))
854 (defcfun g-object-class-find-property (:pointer g-param-spec)
855 (class (:pointer g-object-class))
856 (property-name :string))
858 (defcfun g-object-class-list-properties (:pointer (:pointer g-param-spec))
859 (class (:pointer g-object-class))
860 (n-properties (:pointer :uint)))
862 (defcfun g-object-class-override-property :void
863 (class (:pointer g-object-class))
867 (defcfun g-object-interface-install-property :void
869 (param-spec (:pointer g-param-spec)))
871 (defcfun g-object-interface-find-property (:pointer g-param-spec)
873 (property-name :string))
875 (defcfun g-object-interface-list-properties (:pointer g-param-spec)
877 (n-properties (:pointer :uint)))
879 (defcfun g-object-newv :pointer
880 (object-type g-type-designator)
882 (parameters (:pointer g-parameter)))
884 (defcfun g-object-ref :pointer
887 (defcfun g-object-unref :void
890 (defcfun g-object-ref-sink :pointer
893 (defcfun g-object-is-floating :boolean
896 (defcfun g-object-force-floating :void
899 (defcfun g-object-weak-ref :void
904 (defcfun g-object-weak-unref :void
909 (defcfun g-object-add-toggle-ref :void
914 (defcfun g-object-remove-toggle-ref :void
919 (defcfun g-object-notify :void
921 (property-name :string))
923 (defcfun g-object-freeze-notify :void
926 (defcfun g-object-thaw-notify :void
929 (defcfun g-object-get-data :pointer
933 (defcfun g-object-set-data :void
936 (new-value :pointer))
938 (defcfun g-object-set-data-full :void
944 (defcfun g-object-steal-data :pointer
948 (defcfun g-object-set-property :void
950 (property-name :string)
951 (value (:pointer g-value)))
953 (defcfun g-object-get-property :void
955 (property-name :string)
956 (value (:pointer g-value)))
958 (defcfun g-signal-connect-closure :ulong
960 (detailed-signal :string)
961 (closure (:pointer g-closure))
964 (defcfun g-signal-emitv :void
965 (instance-and-params (:pointer g-value))
968 (return-value (:pointer g-value)))
970 (defcfun g-signal-lookup :uint
972 (type g-type-designator))
974 (defbitfield g-signal-flags
975 :run-first :run-last :run-cleanup :no-recurse :detailed :action :no-hooks)
977 (defcstruct g-signal-query
979 (:signal-name :string)
980 (:owner-type g-type-designator)
981 (:signal-flags g-signal-flags)
982 (:return-type (g-type-designator :mangled-p t))
984 (:param-types (:pointer (g-type-designator :mangled-p t))))
985 (defctype g-signal-query (:struct g-signal-query))
987 (defcfun g-signal-query :void
989 (query (:pointer g-signal-query)))
991 (defcfun g-signal-list-ids (:pointer :uint)
992 (type g-type-designator)
993 (n-ids (:pointer :uint)))
995 (defcfun g-signal-parse-name :boolean
996 (detailed-signal :string)
997 (owner-type g-type-designator)
998 (signal-id-ptr (:pointer :uint))
999 (detail-ptr (:pointer g-quark))
1000 (force-detail-quark :boolean))
1002 (defcstruct g-object-struct
1003 (:type-instance g-type-instance)
1006 (defctype g-object-struct (:struct g-object-struct))