-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgobject2.pas
2439 lines (2081 loc) · 122 KB
/
gobject2.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{ This is an autogenerated unit using gobject introspection (gir2pascal). Do not Edit. }
unit GObject2;
{$MODE OBJFPC}{$H+}
{$PACKRECORDS C}
{$MODESWITCH DUPLICATELOCALS+}
{$LINKLIB libgobject-2.0.so.0}
interface
uses
CTypes, GLib2;
const
GObject2_library = 'libgobject-2.0.so.0';
PARAM_MASK = 255;
PARAM_READWRITE = 0;
PARAM_STATIC_STRINGS = 0;
PARAM_USER_SHIFT = 8;
SIGNAL_FLAGS_MASK = 511;
SIGNAL_MATCH_MASK = 63;
TYPE_FLAG_RESERVED_ID_BIT = 1;
TYPE_FUNDAMENTAL_MAX = 255;
TYPE_FUNDAMENTAL_SHIFT = 2;
TYPE_RESERVED_BSE_FIRST = 32;
TYPE_RESERVED_BSE_LAST = 48;
TYPE_RESERVED_GLIB_FIRST = 22;
TYPE_RESERVED_GLIB_LAST = 31;
TYPE_RESERVED_USER_FIRST = 49;
VALUE_COLLECT_FORMAT_MAX_LENGTH = 8;
VALUE_NOCOPY_CONTENTS = 134217728;
type
TGBindingFlags = Integer;
const
{ GBindingFlags }
G_BINDING_DEFAULT: TGBindingFlags = 0;
G_BINDING_BIDIRECTIONAL: TGBindingFlags = 1;
G_BINDING_SYNC_CREATE: TGBindingFlags = 2;
G_BINDING_INVERT_BOOLEAN: TGBindingFlags = 4;
type
TGConnectFlags = Integer;
const
{ GConnectFlags }
G_CONNECT_AFTER: TGConnectFlags = 1;
G_CONNECT_SWAPPED: TGConnectFlags = 2;
type
TGParamFlags = Integer;
const
{ GParamFlags }
G_PARAM_READABLE: TGParamFlags = 1;
G_PARAM_WRITABLE: TGParamFlags = 2;
G_PARAM_CONSTRUCT: TGParamFlags = 4;
G_PARAM_CONSTRUCT_ONLY: TGParamFlags = 8;
G_PARAM_LAX_VALIDATION: TGParamFlags = 16;
G_PARAM_STATIC_NAME: TGParamFlags = 32;
G_PARAM_PRIVATE: TGParamFlags = 32;
G_PARAM_STATIC_NICK: TGParamFlags = 64;
G_PARAM_STATIC_BLURB: TGParamFlags = 128;
G_PARAM_DEPRECATED: TGParamFlags = 2147483648;
type
TGSignalFlags = Integer;
const
{ GSignalFlags }
G_SIGNAL_RUN_FIRST: TGSignalFlags = 1;
G_SIGNAL_RUN_LAST: TGSignalFlags = 2;
G_SIGNAL_RUN_CLEANUP: TGSignalFlags = 4;
G_SIGNAL_NO_RECURSE: TGSignalFlags = 8;
G_SIGNAL_DETAILED: TGSignalFlags = 16;
G_SIGNAL_ACTION: TGSignalFlags = 32;
G_SIGNAL_NO_HOOKS: TGSignalFlags = 64;
G_SIGNAL_MUST_COLLECT: TGSignalFlags = 128;
G_SIGNAL_DEPRECATED: TGSignalFlags = 256;
type
TGSignalMatchType = Integer;
const
{ GSignalMatchType }
G_SIGNAL_MATCH_ID: TGSignalMatchType = 1;
G_SIGNAL_MATCH_DETAIL: TGSignalMatchType = 2;
G_SIGNAL_MATCH_CLOSURE: TGSignalMatchType = 4;
G_SIGNAL_MATCH_FUNC: TGSignalMatchType = 8;
G_SIGNAL_MATCH_DATA: TGSignalMatchType = 16;
G_SIGNAL_MATCH_UNBLOCKED: TGSignalMatchType = 32;
type
TGTypeDebugFlags = Integer;
const
{ GTypeDebugFlags }
G_TYPE_DEBUG_NONE: TGTypeDebugFlags = 0;
G_TYPE_DEBUG_OBJECTS: TGTypeDebugFlags = 1;
G_TYPE_DEBUG_SIGNALS: TGTypeDebugFlags = 2;
G_TYPE_DEBUG_MASK: TGTypeDebugFlags = 3;
type
TGTypeFlags = Integer;
const
{ GTypeFlags }
G_TYPE_FLAG_ABSTRACT: TGTypeFlags = 16;
G_TYPE_FLAG_VALUE_ABSTRACT: TGTypeFlags = 32;
type
TGTypeFundamentalFlags = Integer;
const
{ GTypeFundamentalFlags }
G_TYPE_FLAG_CLASSED: TGTypeFundamentalFlags = 1;
G_TYPE_FLAG_INSTANTIATABLE: TGTypeFundamentalFlags = 2;
G_TYPE_FLAG_DERIVABLE: TGTypeFundamentalFlags = 4;
G_TYPE_FLAG_DEEP_DERIVABLE: TGTypeFundamentalFlags = 8;
type
PPGClosure = ^PGClosure;
PGClosure = ^TGClosure;
PPPGValue = ^PPGValue;
PPGValue = ^PGValue;
PGValue = ^TGValue;
TGClosureMarshal = procedure(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl;
PPGSignalCMarshaller = ^PGSignalCMarshaller;
PGSignalCMarshaller = ^TGSignalCMarshaller;
TGSignalCMarshaller = TGClosureMarshal;
TGVaClosureMarshal = procedure(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl;
PPGSignalCVaMarshaller = ^PGSignalCVaMarshaller;
PGSignalCVaMarshaller = ^TGSignalCVaMarshaller;
TGSignalCVaMarshaller = TGVaClosureMarshal;
PPGType = ^PGType;
PGType = ^TGType;
TGType = gsize;
TGBaseFinalizeFunc = procedure(g_class: gpointer); cdecl;
TGBaseInitFunc = procedure(g_class: gpointer); cdecl;
PPGBindingFlags = ^PGBindingFlags;
PGBindingFlags = ^TGBindingFlags;
PPGBinding = ^PGBinding;
PGBinding = ^TGBinding;
PPGObject = ^PGObject;
PGObject = ^TGObject;
PPGParameter = ^PGParameter;
PGParameter = ^TGParameter;
PPGParamSpec = ^PGParamSpec;
PGParamSpec = ^TGParamSpec;
PPGToggleNotify = ^PGToggleNotify;
PGToggleNotify = ^TGToggleNotify;
TGToggleNotify = procedure(data: gpointer; object_: PGObject; is_last_ref: gboolean); cdecl;
PPGBindingTransformFunc = ^PGBindingTransformFunc;
PGBindingTransformFunc = ^TGBindingTransformFunc;
TGBindingTransformFunc = function(binding: PGBinding; source_value: PGValue; target_value: PGValue; user_data: gpointer): gboolean; cdecl;
PPGWeakNotify = ^PGWeakNotify;
PGWeakNotify = ^TGWeakNotify;
TGWeakNotify = procedure(data: gpointer; where_the_object_was: PGObject); cdecl;
PPGTypeInstance = ^PGTypeInstance;
PGTypeInstance = ^TGTypeInstance;
PPGTypeClass = ^PGTypeClass;
PGTypeClass = ^TGTypeClass;
TGTypeInstance = object
g_class: PGTypeClass;
function get_private(private_type: TGType): gpointer; cdecl; inline;
end;
TGObject = object
g_type_instance: TGTypeInstance;
ref_count: guint;
qdata: PGData;
//function new_valist(object_type: TGType; first_property_name: Pgchar; var_args: Tva_list): PGObject; cdecl; inline; static;
function newv(object_type: TGType; n_parameters: guint; parameters: PGParameter): PGObject; cdecl; inline; static;
function compat_control(what: gsize; data: gpointer): gsize; cdecl; inline; static;
//function connect(object_: gpointer; signal_spec: Pgchar; args: array of const): gpointer; cdecl; inline; static;
//procedure disconnect(object_: gpointer; signal_spec: Pgchar; args: array of const); cdecl; inline; static;
//procedure get(object_: gpointer; first_property_name: Pgchar; args: array of const); cdecl; inline; static;
function interface_find_property(g_iface: gpointer; property_name: Pgchar): PGParamSpec; cdecl; inline; static;
procedure interface_install_property(g_iface: gpointer; pspec: PGParamSpec); cdecl; inline; static;
function interface_list_properties(g_iface: gpointer; n_properties_p: Pguint): PPGParamSpec; cdecl; inline; static;
//function new(object_type: TGType; first_property_name: Pgchar; args: array of const): gpointer; cdecl; inline; static;
//procedure set_(object_: gpointer; first_property_name: Pgchar; args: array of const); cdecl; inline; static;
procedure add_toggle_ref(notify: TGToggleNotify; data: gpointer); cdecl; inline;
procedure add_weak_pointer(weak_pointer_location: Pgpointer); cdecl; inline;
function bind_property(source_property: Pgchar; target: PGObject; target_property: Pgchar; flags: TGBindingFlags): PGBinding; cdecl; inline;
function bind_property_full(source_property: Pgchar; target: PGObject; target_property: Pgchar; flags: TGBindingFlags; transform_to: TGBindingTransformFunc; transform_from: TGBindingTransformFunc; user_data: gpointer; notify: TGDestroyNotify): PGBinding; cdecl; inline;
function bind_property_with_closures(source_property: Pgchar; target: PGObject; target_property: Pgchar; flags: TGBindingFlags; transform_to: PGClosure; transform_from: PGClosure): PGBinding; cdecl; inline;
function dup_data(key: Pgchar; dup_func: TGDuplicateFunc; user_data: gpointer): gpointer; cdecl; inline;
function dup_qdata(quark: TGQuark; dup_func: TGDuplicateFunc; user_data: gpointer): gpointer; cdecl; inline;
procedure force_floating; cdecl; inline;
procedure freeze_notify; cdecl; inline;
function get_data(key: Pgchar): gpointer; cdecl; inline;
procedure get_property(property_name: Pgchar; value: PGValue); cdecl; inline;
function get_qdata(quark: TGQuark): gpointer; cdecl; inline;
//procedure get_valist(first_property_name: Pgchar; var_args: Tva_list); cdecl; inline;
function is_floating: gboolean; cdecl; inline;
procedure notify(property_name: Pgchar); cdecl; inline;
procedure notify_by_pspec(pspec: PGParamSpec); cdecl; inline;
function ref: PGObject; cdecl; inline;
function ref_sink: PGObject; cdecl; inline;
procedure remove_toggle_ref(notify: TGToggleNotify; data: gpointer); cdecl; inline;
procedure remove_weak_pointer(weak_pointer_location: Pgpointer); cdecl; inline;
function replace_data(key: Pgchar; oldval: gpointer; newval: gpointer; destroy_: TGDestroyNotify; old_destroy: PGDestroyNotify): gboolean; cdecl; inline;
function replace_qdata(quark: TGQuark; oldval: gpointer; newval: gpointer; destroy_: TGDestroyNotify; old_destroy: PGDestroyNotify): gboolean; cdecl; inline;
procedure run_dispose; cdecl; inline;
procedure set_data(key: Pgchar; data: gpointer); cdecl; inline;
procedure set_data_full(key: Pgchar; data: gpointer; destroy_: TGDestroyNotify); cdecl; inline;
procedure set_property(property_name: Pgchar; value: PGValue); cdecl; inline;
procedure set_qdata(quark: TGQuark; data: gpointer); cdecl; inline;
procedure set_qdata_full(quark: TGQuark; data: gpointer; destroy_: TGDestroyNotify); cdecl; inline;
//procedure set_valist(first_property_name: Pgchar; var_args: Tva_list); cdecl; inline;
function steal_data(key: Pgchar): gpointer; cdecl; inline;
function steal_qdata(quark: TGQuark): gpointer; cdecl; inline;
procedure thaw_notify; cdecl; inline;
procedure unref; cdecl; inline;
procedure watch_closure(closure: PGClosure); cdecl; inline;
procedure weak_ref(notify: TGWeakNotify; data: gpointer); cdecl; inline;
procedure weak_unref(notify: TGWeakNotify; data: gpointer); cdecl; inline;
end;
TGBinding = object(TGObject)
function get_flags: TGBindingFlags; cdecl; inline;
function get_source: PGObject; cdecl; inline;
function get_source_property: Pgchar; cdecl; inline;
function get_target: PGObject; cdecl; inline;
function get_target_property: Pgchar; cdecl; inline;
property flags: TGBindingFlags read get_flags { property is writeable but setter not declared } ;
property source: PGObject read get_source { property is writeable but setter not declared } ;
property source_property: Pgchar read get_source_property { property is writeable but setter not declared } ;
property target: PGObject read get_target { property is writeable but setter not declared } ;
property target_property: Pgchar read get_target_property { property is writeable but setter not declared } ;
end;
PPGValueTransform = ^PGValueTransform;
PGValueTransform = ^TGValueTransform;
TGValueTransform = procedure(src_value: PGValue; dest_value: PGValue); cdecl;
PP_Value__data__union = ^P_Value__data__union;
P_Value__data__union = ^T_Value__data__union;
T_Value__data__union = record
case longint of
0 : (v_int: gint);
1 : (v_uint: guint);
2 : (v_long: glong);
3 : (v_ulong: gulong);
4 : (v_int64: gint64);
5 : (v_uint64: guint64);
6 : (v_float: gfloat);
7 : (v_double: gdouble);
8 : (v_pointer: gpointer);
end;
TGValue = object
g_type: TGType;
data: array [0..1] of T_Value__data__union;
procedure copy(dest_value: PGValue); cdecl; inline;
function dup_boxed: gpointer; cdecl; inline;
function dup_object: PGObject; cdecl; inline;
function dup_param: PGParamSpec; cdecl; inline;
function dup_string: Pgchar; cdecl; inline;
function dup_variant: PGVariant; cdecl; inline;
function fits_pointer: gboolean; cdecl; inline;
function get_boolean: gboolean; cdecl; inline;
function get_boxed: gpointer; cdecl; inline;
function get_double: gdouble; cdecl; inline;
function get_enum: gint; cdecl; inline;
function get_flags: guint; cdecl; inline;
function get_float: gfloat; cdecl; inline;
function get_gtype: TGType; cdecl; inline;
function get_int: gint; cdecl; inline;
function get_int64: gint64; cdecl; inline;
function get_long: glong; cdecl; inline;
function get_object: PGObject; cdecl; inline;
function get_param: PGParamSpec; cdecl; inline;
function get_pointer: gpointer; cdecl; inline;
function get_schar: gint8; cdecl; inline;
function get_string: Pgchar; cdecl; inline;
function get_uchar: guint8; cdecl; inline;
function get_uint: guint; cdecl; inline;
function get_uint64: guint64; cdecl; inline;
function get_ulong: gulong; cdecl; inline;
function get_variant: PGVariant; cdecl; inline;
function init(g_type: TGType): PGValue; cdecl; inline;
function peek_pointer: gpointer; cdecl; inline;
function reset: PGValue; cdecl; inline;
procedure set_boolean(v_boolean: gboolean); cdecl; inline;
procedure set_boxed(v_boxed: Pgpointer); cdecl; inline;
procedure set_double(v_double: gdouble); cdecl; inline;
procedure set_enum(v_enum: gint); cdecl; inline;
procedure set_flags(v_flags: guint); cdecl; inline;
procedure set_float(v_float: gfloat); cdecl; inline;
procedure set_gtype(v_gtype: TGType); cdecl; inline;
procedure set_instance(instance: gpointer); cdecl; inline;
procedure set_int(v_int: gint); cdecl; inline;
procedure set_int64(v_int64: gint64); cdecl; inline;
procedure set_long(v_long: glong); cdecl; inline;
procedure set_object(v_object: PGObject); cdecl; inline;
procedure set_param(param: PGParamSpec); cdecl; inline;
procedure set_pointer(v_pointer: gpointer); cdecl; inline;
procedure set_schar(v_char: gint8); cdecl; inline;
procedure set_static_boxed(v_boxed: Pgpointer); cdecl; inline;
procedure set_static_string(v_string: Pgchar); cdecl; inline;
procedure set_string(v_string: Pgchar); cdecl; inline;
procedure set_uchar(v_uchar: guint8); cdecl; inline;
procedure set_uint(v_uint: guint); cdecl; inline;
procedure set_uint64(v_uint64: guint64); cdecl; inline;
procedure set_ulong(v_ulong: gulong); cdecl; inline;
procedure set_variant(variant: PGVariant); cdecl; inline;
procedure take_boxed(v_boxed: Pgpointer); cdecl; inline;
procedure take_object(v_object: gpointer); cdecl; inline;
procedure take_param(param: PGParamSpec); cdecl; inline;
procedure take_string(v_string: Pgchar); cdecl; inline;
procedure take_variant(variant: PGVariant); cdecl; inline;
function transform(dest_value: PGValue): gboolean; cdecl; inline;
procedure unset; cdecl; inline;
procedure register_transform_func(src_type: TGType; dest_type: TGType; transform_func: TGValueTransform); cdecl; inline; static;
function type_compatible(src_type: TGType; dest_type: TGType): gboolean; cdecl; inline; static;
function type_transformable(src_type: TGType; dest_type: TGType): gboolean; cdecl; inline; static;
end;
TGBoxedCopyFunc = function(boxed: gpointer): gpointer; cdecl;
TGBoxedFreeFunc = procedure(boxed: gpointer); cdecl;
PPGClosureNotify = ^PGClosureNotify;
PGClosureNotify = ^TGClosureNotify;
TGClosureNotify = procedure(data: gpointer; closure: PGClosure); cdecl;
PPGClosureMarshal = ^PGClosureMarshal;
PGClosureMarshal = ^TGClosureMarshal;
TGClosureBitfield0 = bitpacked record
ref_count: guint15 { changed from guint to accomodate 15 bitsize requirement };
meta_marshal_nouse: guint1 { changed from guint to accomodate 1 bitsize requirement };
n_guards: guint1 { changed from guint to accomodate 1 bitsize requirement };
n_fnotifiers: guint2 { changed from guint to accomodate 2 bitsize requirement };
n_inotifiers: guint8 { changed from guint to accomodate 8 bitsize requirement };
in_inotify: guint1 { changed from guint to accomodate 1 bitsize requirement };
floating: guint1 { changed from guint to accomodate 1 bitsize requirement };
derivative_flag: guint1 { changed from guint to accomodate 1 bitsize requirement };
in_marshal: guint1 { changed from guint to accomodate 1 bitsize requirement };
is_invalid: guint1 { changed from guint to accomodate 1 bitsize requirement };
end;
PPGClosureNotifyData = ^PGClosureNotifyData;
PGClosureNotifyData = ^TGClosureNotifyData;
TGClosure = object
Bitfield0 : TGClosureBitfield0; { auto generated type }
marshal: procedure(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl;
data: gpointer;
notifiers: PGClosureNotifyData;
function new_object(sizeof_closure: guint; object_: PGObject): PGClosure; cdecl; inline; static;
function new_simple(sizeof_closure: guint; data: gpointer): PGClosure; cdecl; inline; static;
procedure add_finalize_notifier(notify_data: gpointer; notify_func: TGClosureNotify); cdecl; inline;
procedure add_invalidate_notifier(notify_data: gpointer; notify_func: TGClosureNotify); cdecl; inline;
procedure add_marshal_guards(pre_marshal_data: gpointer; pre_marshal_notify: TGClosureNotify; post_marshal_data: gpointer; post_marshal_notify: TGClosureNotify); cdecl; inline;
procedure invalidate; cdecl; inline;
procedure invoke(return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer); cdecl; inline;
function ref: PGClosure; cdecl; inline;
procedure remove_finalize_notifier(notify_data: gpointer; notify_func: TGClosureNotify); cdecl; inline;
procedure remove_invalidate_notifier(notify_data: gpointer; notify_func: TGClosureNotify); cdecl; inline;
procedure set_marshal(marshal: TGClosureMarshal); cdecl; inline;
procedure set_meta_marshal(marshal_data: gpointer; meta_marshal: TGClosureMarshal); cdecl; inline;
procedure sink; cdecl; inline;
procedure unref; cdecl; inline;
end;
TGCallback = procedure; cdecl;
PPGCClosure = ^PGCClosure;
PGCClosure = ^TGCClosure;
PPGCallback = ^PGCallback;
PGCallback = ^TGCallback;
TGCClosure = object
closure: TGClosure;
callback: gpointer;
procedure marshal_BOOLEAN__BOXED_BOXED(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_BOOLEAN__BOXED_BOXEDv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_BOOLEAN__FLAGS(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_BOOLEAN__FLAGSv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_STRING__OBJECT_POINTER(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_STRING__OBJECT_POINTERv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__BOOLEAN(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__BOOLEANv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__BOXED(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__BOXEDv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__CHAR(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__CHARv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__DOUBLE(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__DOUBLEv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__ENUM(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__ENUMv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__FLAGS(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__FLAGSv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__FLOAT(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__FLOATv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__INT(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__INTv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__LONG(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__LONGv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__OBJECT(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__OBJECTv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__PARAM(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__PARAMv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__POINTER(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__POINTERv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__STRING(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__STRINGv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__UCHAR(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__UCHARv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__UINT(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
procedure marshal_VOID__UINT_POINTER(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__UINT_POINTERv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
//procedure marshal_VOID__UINTv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__ULONG(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__ULONGv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__VARIANT(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__VARIANTv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_VOID__VOID(closure: PGClosure; return_value: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_VOID__VOIDv(closure: PGClosure; return_value: PGValue; instance: gpointer; args: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
procedure marshal_generic(closure: PGClosure; return_gvalue: PGValue; n_param_values: guint; param_values: PGValue; invocation_hint: gpointer; marshal_data: gpointer); cdecl; inline; static;
//procedure marshal_generic_va(closure: PGClosure; return_value: PGValue; instance: gpointer; args_list: Tva_list; marshal_data: gpointer; n_params: gint; param_types: PGType); cdecl; inline; static;
function new(callback_func: TGCallback; user_data: gpointer; destroy_data: TGClosureNotify): PGClosure; cdecl; inline; static;
function new_object(callback_func: TGCallback; object_: PGObject): PGClosure; cdecl; inline; static;
function new_object_swap(callback_func: TGCallback; object_: PGObject): PGClosure; cdecl; inline; static;
function new_swap(callback_func: TGCallback; user_data: gpointer; destroy_data: TGClosureNotify): PGClosure; cdecl; inline; static;
end;
TGClassFinalizeFunc = procedure(g_class: gpointer; class_data: gpointer); cdecl;
TGClassInitFunc = procedure(g_class: gpointer; class_data: gpointer); cdecl;
TGClosureNotifyData = record
data: gpointer;
notify: TGClosureNotify;
end;
PPGConnectFlags = ^PGConnectFlags;
PGConnectFlags = ^TGConnectFlags;
TGTypeClass = object
g_type: TGType;
function get_private(private_type: TGType): gpointer; cdecl; inline;
function peek_parent: PGTypeClass; cdecl; inline;
procedure unref; cdecl; inline;
procedure unref_uncached; cdecl; inline;
procedure add_private(g_class: gpointer; private_size: gsize); cdecl; inline; static;
function peek(type_: TGType): PGTypeClass; cdecl; inline; static;
function peek_static(type_: TGType): PGTypeClass; cdecl; inline; static;
function ref(type_: TGType): PGTypeClass; cdecl; inline; static;
end;
PPGEnumValue = ^PGEnumValue;
PGEnumValue = ^TGEnumValue;
TGEnumValue = record
value: gint;
value_name: Pgchar;
value_nick: Pgchar;
end;
PPGEnumClass = ^PGEnumClass;
PGEnumClass = ^TGEnumClass;
TGEnumClass = record
g_type_class: TGTypeClass;
minimum: gint;
maximum: gint;
n_values: guint;
values: PGEnumValue;
end;
PPGFlagsValue = ^PGFlagsValue;
PGFlagsValue = ^TGFlagsValue;
TGFlagsValue = record
value: guint;
value_name: Pgchar;
value_nick: Pgchar;
end;
PPGFlagsClass = ^PGFlagsClass;
PGFlagsClass = ^TGFlagsClass;
TGFlagsClass = record
g_type_class: TGTypeClass;
mask: guint;
n_values: guint;
values: PGFlagsValue;
end;
PPGInitiallyUnowned = ^PGInitiallyUnowned;
PGInitiallyUnowned = ^TGInitiallyUnowned;
TGInitiallyUnowned = object(TGObject)
end;
PPGObjectConstructParam = ^PGObjectConstructParam;
PGObjectConstructParam = ^TGObjectConstructParam;
TGObjectConstructParam = record
pspec: PGParamSpec;
value: PGValue;
end;
PPGParamFlags = ^PGParamFlags;
PGParamFlags = ^TGParamFlags;
TGParamSpec = object
g_type_instance: TGTypeInstance;
name: Pgchar;
flags: TGParamFlags;
value_type: TGType;
owner_type: TGType;
_nick: Pgchar;
_blurb: Pgchar;
qdata: PGData;
ref_count: guint;
param_id: guint;
function internal(param_type: TGType; name: Pgchar; nick: Pgchar; blurb: Pgchar; flags: TGParamFlags): gpointer; cdecl; inline; static;
function get_blurb: Pgchar; cdecl; inline;
function get_name: Pgchar; cdecl; inline;
function get_nick: Pgchar; cdecl; inline;
function get_qdata(quark: TGQuark): gpointer; cdecl; inline;
function get_redirect_target: PGParamSpec; cdecl; inline;
function ref: PGParamSpec; cdecl; inline;
function ref_sink: PGParamSpec; cdecl; inline;
procedure set_qdata(quark: TGQuark; data: gpointer); cdecl; inline;
procedure set_qdata_full(quark: TGQuark; data: gpointer; destroy_: TGDestroyNotify); cdecl; inline;
procedure sink; cdecl; inline;
function steal_qdata(quark: TGQuark): gpointer; cdecl; inline;
procedure unref; cdecl; inline;
end;
PPGInitiallyUnownedClass = ^PGInitiallyUnownedClass;
PGInitiallyUnownedClass = ^TGInitiallyUnownedClass;
TGInitiallyUnownedClass = object
g_type_class: TGTypeClass;
construct_properties: PGSList;
constructor_: function(type_: TGType; n_construct_properties: guint; construct_properties: PGObjectConstructParam): PGObject; cdecl;
set_property: procedure(object_: PGObject; property_id: guint; value: PGValue; pspec: PGParamSpec); cdecl;
get_property: procedure(object_: PGObject; property_id: guint; value: PGValue; pspec: PGParamSpec); cdecl;
dispose: procedure(object_: PGObject); cdecl;
finalize: procedure(object_: PGObject); cdecl;
dispatch_properties_changed: procedure(object_: PGObject; n_pspecs: guint; pspecs: PPGParamSpec); cdecl;
notify: procedure(object_: PGObject; pspec: PGParamSpec); cdecl;
constructed: procedure(object_: PGObject); cdecl;
flags: gsize;
pdummy: array [0..5] of gpointer;
end;
TGInstanceInitFunc = procedure(instance: PGTypeInstance; g_class: gpointer); cdecl;
TGInterfaceFinalizeFunc = procedure(g_iface: gpointer; iface_data: gpointer); cdecl;
TGInterfaceInitFunc = procedure(g_iface: gpointer; iface_data: gpointer); cdecl;
PPGInterfaceInfo = ^PGInterfaceInfo;
PGInterfaceInfo = ^TGInterfaceInfo;
PPGInterfaceInitFunc = ^PGInterfaceInitFunc;
PGInterfaceInitFunc = ^TGInterfaceInitFunc;
PPGInterfaceFinalizeFunc = ^PGInterfaceFinalizeFunc;
PGInterfaceFinalizeFunc = ^TGInterfaceFinalizeFunc;
TGInterfaceInfo = record
interface_init: TGInterfaceInitFunc;
interface_finalize: TGInterfaceFinalizeFunc;
interface_data: gpointer;
end;
TGParameter = record
name: Pgchar;
value: TGValue;
end;
PPGObjectClass = ^PGObjectClass;
PGObjectClass = ^TGObjectClass;
TGObjectClass = object
g_type_class: TGTypeClass;
construct_properties: PGSList;
constructor_: function(type_: TGType; n_construct_properties: guint; construct_properties: PGObjectConstructParam): PGObject; cdecl;
set_property: procedure(object_: PGObject; property_id: guint; value: PGValue; pspec: PGParamSpec); cdecl;
get_property: procedure(object_: PGObject; property_id: guint; value: PGValue; pspec: PGParamSpec); cdecl;
dispose: procedure(object_: PGObject); cdecl;
finalize: procedure(object_: PGObject); cdecl;
dispatch_properties_changed: procedure(object_: PGObject; n_pspecs: guint; pspecs: PPGParamSpec); cdecl;
notify: procedure(object_: PGObject; pspec: PGParamSpec); cdecl;
constructed: procedure(object_: PGObject); cdecl;
flags: gsize;
pdummy: array [0..5] of gpointer;
function find_property(property_name: Pgchar): PGParamSpec; cdecl; inline;
procedure install_properties(n_pspecs: guint; pspecs: PPGParamSpec); cdecl; inline;
procedure install_property(property_id: guint; pspec: PGParamSpec); cdecl; inline;
function list_properties(n_properties: Pguint): PPGParamSpec; cdecl; inline;
procedure override_property(property_id: guint; name: Pgchar); cdecl; inline;
end;
TGObjectFinalizeFunc = procedure(object_: PGObject); cdecl;
TGObjectGetPropertyFunc = procedure(object_: PGObject; property_id: guint; value: PGValue; pspec: PGParamSpec); cdecl;
TGObjectSetPropertyFunc = procedure(object_: PGObject; property_id: guint; value: PGValue; pspec: PGParamSpec); cdecl;
PPGParamSpecBoolean = ^PGParamSpecBoolean;
PGParamSpecBoolean = ^TGParamSpecBoolean;
TGParamSpecBoolean = object(TGParamSpec)
default_value: gboolean;
end;
PPGParamSpecBoxed = ^PGParamSpecBoxed;
PGParamSpecBoxed = ^TGParamSpecBoxed;
TGParamSpecBoxed = object(TGParamSpec)
end;
PPGParamSpecChar = ^PGParamSpecChar;
PGParamSpecChar = ^TGParamSpecChar;
TGParamSpecChar = object(TGParamSpec)
minimum: gint8;
maximum: gint8;
default_value: gint8;
end;
PPGParamSpecClass = ^PGParamSpecClass;
PGParamSpecClass = ^TGParamSpecClass;
TGParamSpecClass = object
g_type_class: TGTypeClass;
value_type: TGType;
finalize: procedure(pspec: PGParamSpec); cdecl;
value_set_default: procedure(pspec: PGParamSpec; value: PGValue); cdecl;
value_validate: function(pspec: PGParamSpec; value: PGValue): gboolean; cdecl;
values_cmp: function(pspec: PGParamSpec; value1: PGValue; value2: PGValue): gint; cdecl;
dummy: array [0..3] of gpointer;
end;
PPGParamSpecDouble = ^PGParamSpecDouble;
PGParamSpecDouble = ^TGParamSpecDouble;
TGParamSpecDouble = object(TGParamSpec)
minimum: gdouble;
maximum: gdouble;
default_value: gdouble;
epsilon: gdouble;
end;
PPGParamSpecEnum = ^PGParamSpecEnum;
PGParamSpecEnum = ^TGParamSpecEnum;
TGParamSpecEnum = object(TGParamSpec)
enum_class: PGEnumClass;
default_value: gint;
end;
PPGParamSpecFlags = ^PGParamSpecFlags;
PGParamSpecFlags = ^TGParamSpecFlags;
TGParamSpecFlags = object(TGParamSpec)
flags_class: PGFlagsClass;
default_value: guint;
end;
PPGParamSpecFloat = ^PGParamSpecFloat;
PGParamSpecFloat = ^TGParamSpecFloat;
TGParamSpecFloat = object(TGParamSpec)
minimum: gfloat;
maximum: gfloat;
default_value: gfloat;
epsilon: gfloat;
end;
PPGParamSpecGType = ^PGParamSpecGType;
PGParamSpecGType = ^TGParamSpecGType;
TGParamSpecGType = object(TGParamSpec)
is_a_type: TGType;
end;
PPGParamSpecInt = ^PGParamSpecInt;
PGParamSpecInt = ^TGParamSpecInt;
TGParamSpecInt = object(TGParamSpec)
minimum: gint;
maximum: gint;
default_value: gint;
end;
PPGParamSpecInt64 = ^PGParamSpecInt64;
PGParamSpecInt64 = ^TGParamSpecInt64;
TGParamSpecInt64 = object(TGParamSpec)
minimum: gint64;
maximum: gint64;
default_value: gint64;
end;
PPGParamSpecLong = ^PGParamSpecLong;
PGParamSpecLong = ^TGParamSpecLong;
TGParamSpecLong = object(TGParamSpec)
minimum: glong;
maximum: glong;
default_value: glong;
end;
PPGParamSpecObject = ^PGParamSpecObject;
PGParamSpecObject = ^TGParamSpecObject;
TGParamSpecObject = object(TGParamSpec)
end;
PPGParamSpecOverride = ^PGParamSpecOverride;
PGParamSpecOverride = ^TGParamSpecOverride;
TGParamSpecOverride = object(TGParamSpec)
overridden: PGParamSpec;
end;
PPGParamSpecParam = ^PGParamSpecParam;
PGParamSpecParam = ^TGParamSpecParam;
TGParamSpecParam = object(TGParamSpec)
end;
PPGParamSpecPointer = ^PGParamSpecPointer;
PGParamSpecPointer = ^TGParamSpecPointer;
TGParamSpecPointer = object(TGParamSpec)
end;
PPGParamSpecPool = ^PGParamSpecPool;
PGParamSpecPool = ^TGParamSpecPool;
TGParamSpecPool = object
procedure insert(pspec: PGParamSpec; owner_type: TGType); cdecl; inline;
function list(owner_type: TGType; n_pspecs_p: Pguint): PPGParamSpec; cdecl; inline;
function list_owned(owner_type: TGType): PGList; cdecl; inline;
function lookup(param_name: Pgchar; owner_type: TGType; walk_ancestors: gboolean): PGParamSpec; cdecl; inline;
procedure remove(pspec: PGParamSpec); cdecl; inline;
function new(type_prefixing: gboolean): PGParamSpecPool; cdecl; inline; static;
end;
PPGParamSpecString = ^PGParamSpecString;
PGParamSpecString = ^TGParamSpecString;
TGParamSpecStringBitfield0 = bitpacked record
null_fold_if_empty: guint1 { changed from guint to accomodate 1 bitsize requirement };
ensure_non_null: guint1 { changed from guint to accomodate 1 bitsize requirement };
end;
TGParamSpecString = object(TGParamSpec)
default_value: Pgchar;
cset_first: Pgchar;
cset_nth: Pgchar;
substitutor: gchar;
Bitfield0 : TGParamSpecStringBitfield0; { auto generated type }
end;
PPGParamSpecTypeInfo = ^PGParamSpecTypeInfo;
PGParamSpecTypeInfo = ^TGParamSpecTypeInfo;
TGParamSpecTypeInfo = record
instance_size: guint16;
n_preallocs: guint16;
instance_init: procedure(pspec: PGParamSpec); cdecl;
value_type: TGType;
finalize: procedure(pspec: PGParamSpec); cdecl;
value_set_default: procedure(pspec: PGParamSpec; value: PGValue); cdecl;
value_validate: function(pspec: PGParamSpec; value: PGValue): gboolean; cdecl;
values_cmp: function(pspec: PGParamSpec; value1: PGValue; value2: PGValue): gint; cdecl;
end;
PPGParamSpecUChar = ^PGParamSpecUChar;
PGParamSpecUChar = ^TGParamSpecUChar;
TGParamSpecUChar = object(TGParamSpec)
minimum: guint8;
maximum: guint8;
default_value: guint8;
end;
PPGParamSpecUInt = ^PGParamSpecUInt;
PGParamSpecUInt = ^TGParamSpecUInt;
TGParamSpecUInt = object(TGParamSpec)
minimum: guint;
maximum: guint;
default_value: guint;
end;
PPGParamSpecUInt64 = ^PGParamSpecUInt64;
PGParamSpecUInt64 = ^TGParamSpecUInt64;
TGParamSpecUInt64 = object(TGParamSpec)
minimum: guint64;
maximum: guint64;
default_value: guint64;
end;
PPGParamSpecULong = ^PGParamSpecULong;
PGParamSpecULong = ^TGParamSpecULong;
TGParamSpecULong = object(TGParamSpec)
minimum: gulong;
maximum: gulong;
default_value: gulong;
end;
PPGParamSpecUnichar = ^PGParamSpecUnichar;
PGParamSpecUnichar = ^TGParamSpecUnichar;
TGParamSpecUnichar = object(TGParamSpec)
default_value: gunichar;
end;
PPGParamSpecValueArray = ^PGParamSpecValueArray;
PGParamSpecValueArray = ^TGParamSpecValueArray;
TGParamSpecValueArray = object(TGParamSpec)
element_spec: PGParamSpec;
fixed_n_elements: guint;
end;
PPGParamSpecVariant = ^PGParamSpecVariant;
PGParamSpecVariant = ^TGParamSpecVariant;
TGParamSpecVariant = object(TGParamSpec)
type_: PGVariantType;
default_value: PGVariant;
padding: array [0..3] of gpointer;
end;
PPGSignalInvocationHint = ^PGSignalInvocationHint;
PGSignalInvocationHint = ^TGSignalInvocationHint;
PPGSignalFlags = ^PGSignalFlags;
PGSignalFlags = ^TGSignalFlags;
TGSignalInvocationHint = record
signal_id: guint;
detail: TGQuark;
run_type: TGSignalFlags;
end;
TGSignalAccumulator = function(ihint: PGSignalInvocationHint; return_accu: PGValue; handler_return: PGValue; data: gpointer): gboolean; cdecl;
TGSignalEmissionHook = function(ihint: PGSignalInvocationHint; n_param_values: guint; param_values: PGValue; data: gpointer): gboolean; cdecl;
PPGSignalMatchType = ^PGSignalMatchType;
PGSignalMatchType = ^TGSignalMatchType;
PPGSignalQuery = ^PGSignalQuery;
PGSignalQuery = ^TGSignalQuery;
TGSignalQuery = record
signal_id: guint;
signal_name: Pgchar;
itype: TGType;
signal_flags: TGSignalFlags;
return_type: TGType;
n_params: guint;
param_types: PGType;
end;
TGTypeCValue = record
case longint of
0 : (v_int: gint);
1 : (v_long: glong);
2 : (v_int64: gint64);
3 : (v_double: gdouble);
4 : (v_pointer: gpointer);
end;
TGTypeClassCacheFunc = function(cache_data: gpointer; g_class: PGTypeClass): gboolean; cdecl;
PPGTypeDebugFlags = ^PGTypeDebugFlags;
PGTypeDebugFlags = ^TGTypeDebugFlags;
PPGTypeFlags = ^PGTypeFlags;
PGTypeFlags = ^TGTypeFlags;
PPGTypeFundamentalFlags = ^PGTypeFundamentalFlags;
PGTypeFundamentalFlags = ^TGTypeFundamentalFlags;
PPGTypeFundamentalInfo = ^PGTypeFundamentalInfo;
PGTypeFundamentalInfo = ^TGTypeFundamentalInfo;
TGTypeFundamentalInfo = record
type_flags: TGTypeFundamentalFlags;
end;
PPGTypeValueTable = ^PGTypeValueTable;
PGTypeValueTable = ^TGTypeValueTable;
PPGTypeCValue = ^PGTypeCValue;
PGTypeCValue = ^TGTypeCValue;
TGTypeValueTable = object
value_init: procedure(value: PGValue); cdecl;
value_free: procedure(value: PGValue); cdecl;
value_copy: procedure(src_value: PGValue; dest_value: PGValue); cdecl;
value_peek_pointer: function(value: PGValue): gpointer; cdecl;
collect_format: Pgchar;
collect_value: function(value: PGValue; n_collect_values: guint; collect_values: PGTypeCValue; collect_flags: guint): Pgchar; cdecl;
lcopy_format: Pgchar;
lcopy_value: function(value: PGValue; n_collect_values: guint; collect_values: PGTypeCValue; collect_flags: guint): Pgchar; cdecl;
function peek(type_: TGType): PGTypeValueTable; cdecl; inline; static;
end;
PPGTypeInfo = ^PGTypeInfo;
PGTypeInfo = ^TGTypeInfo;
PPGBaseInitFunc = ^PGBaseInitFunc;
PGBaseInitFunc = ^TGBaseInitFunc;
PPGBaseFinalizeFunc = ^PGBaseFinalizeFunc;
PGBaseFinalizeFunc = ^TGBaseFinalizeFunc;
PPGClassInitFunc = ^PGClassInitFunc;
PGClassInitFunc = ^TGClassInitFunc;
PPGClassFinalizeFunc = ^PGClassFinalizeFunc;
PGClassFinalizeFunc = ^TGClassFinalizeFunc;
PPGInstanceInitFunc = ^PGInstanceInitFunc;
PGInstanceInitFunc = ^TGInstanceInitFunc;
TGTypeInfo = record
class_size: guint16;
base_init: TGBaseInitFunc;
base_finalize: TGBaseFinalizeFunc;
class_init: TGClassInitFunc;
class_finalize: TGClassFinalizeFunc;
class_data: Pgpointer;
instance_size: guint16;
n_preallocs: guint16;
instance_init: TGInstanceInitFunc;
value_table: PGTypeValueTable;
end;
PPGTypeInterface = ^PGTypeInterface;
PGTypeInterface = ^TGTypeInterface;
PPGTypePlugin = ^PGTypePlugin;
PGTypePlugin = ^TGTypePlugin;
TGTypeInterface = object
g_type: TGType;
g_instance_type: TGType;
function peek_parent: PGTypeInterface; cdecl; inline;
procedure add_prerequisite(interface_type: TGType; prerequisite_type: TGType); cdecl; inline; static;
function get_plugin(instance_type: TGType; interface_type: TGType): PGTypePlugin; cdecl; inline; static;
function peek(instance_class: PGTypeClass; iface_type: TGType): PGTypeInterface; cdecl; inline; static;
function prerequisites(interface_type: TGType; n_prerequisites: Pguint): PGType; cdecl; inline; static;
end;
TGTypePlugin = object
procedure complete_interface_info(instance_type: TGType; interface_type: TGType; info: PGInterfaceInfo); cdecl; inline;
procedure complete_type_info(g_type: TGType; info: PGTypeInfo; value_table: PGTypeValueTable); cdecl; inline;
procedure unuse; cdecl; inline;
procedure use; cdecl; inline;
end;
TGTypeInterfaceCheckFunc = procedure(check_data: gpointer; g_iface: gpointer); cdecl;
PPGTypeModule = ^PGTypeModule;
PGTypeModule = ^TGTypeModule;
TGTypeModule = object(TGObject)
use_count: guint;
type_infos: PGSList;
interface_infos: PGSList;
name: Pgchar;
procedure add_interface(instance_type: TGType; interface_type: TGType; interface_info: PGInterfaceInfo); cdecl; inline;
function register_enum(name: Pgchar; const_static_values: PGEnumValue): TGType; cdecl; inline;
function register_flags(name: Pgchar; const_static_values: PGFlagsValue): TGType; cdecl; inline;
function register_type(parent_type: TGType; type_name: Pgchar; type_info: PGTypeInfo; flags: TGTypeFlags): TGType; cdecl; inline;
procedure set_name(name: Pgchar); cdecl; inline;
procedure unuse; cdecl; inline;
function use: gboolean; cdecl; inline;
end;
PPGTypeModuleClass = ^PGTypeModuleClass;
PGTypeModuleClass = ^TGTypeModuleClass;
TGTypeModuleClass = object
parent_class: TGObjectClass;
load: function(module: PGTypeModule): gboolean; cdecl;
unload: procedure(module: PGTypeModule); cdecl;
reserved1: procedure; cdecl;
reserved2: procedure; cdecl;
reserved3: procedure; cdecl;
reserved4: procedure; cdecl;
end;
TGTypePluginUse = procedure(plugin: PGTypePlugin); cdecl;
TGTypePluginUnuse = procedure(plugin: PGTypePlugin); cdecl;
TGTypePluginCompleteTypeInfo = procedure(plugin: PGTypePlugin; g_type: TGType; info: PGTypeInfo; value_table: PGTypeValueTable); cdecl;
TGTypePluginCompleteInterfaceInfo = procedure(plugin: PGTypePlugin; instance_type: TGType; interface_type: TGType; info: PGInterfaceInfo); cdecl;
PPGTypePluginClass = ^PGTypePluginClass;
PGTypePluginClass = ^TGTypePluginClass;
PPGTypePluginUse = ^PGTypePluginUse;
PGTypePluginUse = ^TGTypePluginUse;
PPGTypePluginUnuse = ^PGTypePluginUnuse;
PGTypePluginUnuse = ^TGTypePluginUnuse;