forked from pygobject/pygobject-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGObject.pyi
More file actions
3053 lines (2693 loc) · 88.9 KB
/
GObject.pyi
File metadata and controls
3053 lines (2693 loc) · 88.9 KB
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
from typing import Any
from typing import Callable
from typing import Literal
from typing import Optional
from typing import Protocol
from typing import Sequence
from typing import Tuple
from typing import Type
from typing import TypeVar
from typing import Union
from enum import Enum
from enum import Flag
from gi.repository import GLib
# override
_T = TypeVar("_T")
G_MAXDOUBLE: float = 1.7976931348623157e308
G_MAXFLOAT: float = 3.4028234663852886e38
G_MAXINT: int = 2147483647
G_MAXINT16: int = 32767
G_MAXINT32: int = 2147483647
G_MAXINT64: int = 9223372036854775807
G_MAXINT8: int = 127
G_MAXLONG: int = 9223372036854775807
G_MAXOFFSET: int = 9223372036854775807
G_MAXSHORT: int = 32767
G_MAXSIZE: int = 18446744073709551615
G_MAXSSIZE: int = 9223372036854775807
G_MAXUINT: int = 4294967295
G_MAXUINT16: int = 65535
G_MAXUINT32: int = 4294967295
G_MAXUINT64: int = 18446744073709551615
G_MAXUINT8: int = 255
G_MAXULONG: int = 18446744073709551615
G_MAXUSHORT: int = 65535
G_MINDOUBLE: float = 2.2250738585072014e-308
G_MINFLOAT: float = 1.1754943508222875e-38
G_MININT: int = -2147483648
G_MININT16: int = -32768
G_MININT32: int = -2147483648
G_MININT64: int = -9223372036854775808
G_MININT8: int = -128
G_MINLONG: int = -9223372036854775808
G_MINOFFSET: int = -9223372036854775808
G_MINSHORT: int = -32768
G_MINSSIZE: int = -9223372036854775808
IO_ERR: int = 8
IO_FLAG_APPEND: int = 1
IO_FLAG_GET_MASK: int = 31
IO_FLAG_IS_READABLE: int = 4
IO_FLAG_IS_SEEKABLE: int = 16
IO_FLAG_IS_WRITEABLE: int = 8
IO_FLAG_MASK: int = 31
IO_FLAG_NONBLOCK: int = 2
IO_FLAG_SET_MASK: int = 3
IO_HUP: int = 16
IO_IN: int = 1
IO_NVAL: int = 32
IO_OUT: int = 4
IO_PRI: int = 2
IO_STATUS_AGAIN: int = 3
IO_STATUS_EOF: int = 2
IO_STATUS_ERROR: int = 0
IO_STATUS_NORMAL: int = 1
OPTION_ERROR_BAD_VALUE: int = 1
OPTION_ERROR_FAILED: int = 2
OPTION_ERROR_UNKNOWN_OPTION: int = 0
OPTION_FLAG_FILENAME: int = 16
OPTION_FLAG_HIDDEN: int = 1
OPTION_FLAG_IN_MAIN: int = 2
OPTION_FLAG_NOALIAS: int = 64
OPTION_FLAG_NO_ARG: int = 8
OPTION_FLAG_OPTIONAL_ARG: int = 32
OPTION_FLAG_REVERSE: int = 4
OPTION_REMAINING: str = ""
PARAM_CONSTRUCT: int = 4
PARAM_CONSTRUCT_ONLY: int = 8
PARAM_LAX_VALIDATION: int = 16
PARAM_MASK: int = 255
PARAM_READABLE: int = 1
PARAM_READWRITE: int = 3
PARAM_STATIC_STRINGS: int = 224
PARAM_USER_SHIFT: int = 8
PARAM_WRITABLE: int = 2
PRIORITY_DEFAULT: int = 0
PRIORITY_DEFAULT_IDLE: int = 200
PRIORITY_HIGH: int = -100
PRIORITY_HIGH_IDLE: int = 100
PRIORITY_LOW: int = 300
SIGNAL_ACTION: int = 32
SIGNAL_DETAILED: int = 16
SIGNAL_FLAGS_MASK: int = 511
SIGNAL_MATCH_MASK: int = 63
SIGNAL_NO_HOOKS: int = 64
SIGNAL_NO_RECURSE: int = 8
SIGNAL_RUN_CLEANUP: int = 4
SIGNAL_RUN_FIRST: int = 1
SIGNAL_RUN_LAST: int = 2
SPAWN_CHILD_INHERITS_STDIN: int = 32
SPAWN_DO_NOT_REAP_CHILD: int = 2
SPAWN_FILE_AND_ARGV_ZERO: int = 64
SPAWN_LEAVE_DESCRIPTORS_OPEN: int = 1
SPAWN_SEARCH_PATH: int = 4
SPAWN_STDERR_TO_DEV_NULL: int = 16
SPAWN_STDOUT_TO_DEV_NULL: int = 8
TYPE_BOOLEAN = ... # FIXME Constant
TYPE_BOXED = ... # FIXME Constant
TYPE_CHAR = ... # FIXME Constant
TYPE_DOUBLE = ... # FIXME Constant
TYPE_ENUM = ... # FIXME Constant
TYPE_FLAGS = ... # FIXME Constant
TYPE_FLAG_RESERVED_ID_BIT: int = 1
TYPE_FLOAT = ... # FIXME Constant
TYPE_FUNDAMENTAL_MAX: int = 1020
TYPE_FUNDAMENTAL_SHIFT: int = 2
TYPE_GSTRING = ... # FIXME Constant
TYPE_GTYPE = ... # FIXME Constant
TYPE_INT = ... # FIXME Constant
TYPE_INT64 = ... # FIXME Constant
TYPE_INTERFACE = ... # FIXME Constant
TYPE_INVALID = ... # FIXME Constant
TYPE_LONG = ... # FIXME Constant
TYPE_NONE = ... # FIXME Constant
TYPE_OBJECT = ... # FIXME Constant
TYPE_PARAM = ... # FIXME Constant
TYPE_POINTER = ... # FIXME Constant
TYPE_PYOBJECT = ... # FIXME Constant
TYPE_RESERVED_BSE_FIRST: int = 32
TYPE_RESERVED_BSE_LAST: int = 48
TYPE_RESERVED_GLIB_FIRST: int = 22
TYPE_RESERVED_GLIB_LAST: int = 31
TYPE_RESERVED_USER_FIRST: int = 49
TYPE_STRING = ... # FIXME Constant
TYPE_STRV = ... # FIXME Constant
TYPE_UCHAR = ... # FIXME Constant
TYPE_UINT = ... # FIXME Constant
TYPE_UINT64 = ... # FIXME Constant
TYPE_ULONG = ... # FIXME Constant
TYPE_UNICHAR = ... # FIXME Constant
TYPE_VALUE = ... # FIXME Constant
TYPE_VARIANT = ... # FIXME Constant
VALUE_COLLECT_FORMAT_MAX_LENGTH: int = 8
VALUE_INTERNED_STRING: int = 268435456
VALUE_NOCOPY_CONTENTS: int = 134217728
_introspection_module = ... # FIXME Constant
_lock = ... # FIXME Constant
_namespace: str = "GObject"
_overrides_module = ... # FIXME Constant
_version: str = "2.0"
features = ... # FIXME Constant
glib_version = ... # FIXME Constant
pygobject_version = ... # FIXME Constant
# override
def add_emission_hook(*args, **kwargs): ...
def boxed_copy(boxed_type: Type, src_boxed: None) -> None: ...
def boxed_free(boxed_type: Type, boxed: None) -> None: ...
def boxed_type_register_static(
name: str, boxed_copy: Callable[[None], None], boxed_free: Callable[[None], None]
) -> Type: ...
def cclosure_marshal_BOOLEAN__BOXED_BOXED(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_BOOLEAN__FLAGS(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_STRING__OBJECT_POINTER(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__BOOLEAN(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__BOXED(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__CHAR(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__DOUBLE(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__ENUM(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__FLAGS(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__FLOAT(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__INT(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__LONG(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__OBJECT(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__PARAM(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__POINTER(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__STRING(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__UCHAR(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__UINT(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__UINT_POINTER(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__ULONG(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__VARIANT(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_VOID__VOID(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def cclosure_marshal_generic(
closure: Callable[..., Any],
return_gvalue: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
def child_watch_add(*args, **kwargs): ... # FIXME Function
def clear_signal_handler(handler_id_ptr: int, instance: Object) -> None: ...
def enum_complete_type_info(g_enum_type: Type, const_values: EnumValue) -> TypeInfo: ...
def enum_get_value(enum_class: EnumClass, value: int) -> Optional[EnumValue]: ...
def enum_get_value_by_name(enum_class: EnumClass, name: str) -> Optional[EnumValue]: ...
def enum_get_value_by_nick(enum_class: EnumClass, nick: str) -> Optional[EnumValue]: ...
def enum_register_static(name: str, const_static_values: EnumValue) -> Type: ...
def enum_to_string(g_enum_type: Type, value: int) -> str: ...
def filename_display_basename(filename: str) -> str: ...
def filename_display_name(filename: str) -> str: ...
def filename_from_utf8(utf8string, len=-1): ... # FIXME Function
def flags_complete_type_info(
g_flags_type: Type, const_values: FlagsValue
) -> TypeInfo: ...
def flags_get_first_value(
flags_class: FlagsClass, value: int
) -> Optional[FlagsValue]: ...
def flags_get_value_by_name(
flags_class: FlagsClass, name: str
) -> Optional[FlagsValue]: ...
def flags_get_value_by_nick(
flags_class: FlagsClass, nick: str
) -> Optional[FlagsValue]: ...
def flags_register_static(name: str, const_static_values: FlagsValue) -> Type: ...
def flags_to_string(flags_type: Type, value: int) -> str: ...
def get_application_name() -> Optional[str]: ...
def get_current_time(): ... # FIXME Function
def get_prgname() -> Optional[str]: ...
def gtype_get_type() -> Type: ...
def idle_add(function, *user_data, **kwargs): ... # FIXME Function
def io_add_watch(*args, **kwargs): ... # FIXME Function
def list_properties(*args, **kwargs): ... # FIXME Function
def main_context_default() -> GLib.MainContext: ...
def main_depth() -> int: ...
def markup_escape_text(text, length=-1): ... # FIXME Function
def new(*args, **kwargs): ... # FIXME Function
def param_spec_boolean(
name: str,
nick: Optional[str],
blurb: Optional[str],
default_value: bool,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_boxed(
name: str,
nick: Optional[str],
blurb: Optional[str],
boxed_type: Type,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_char(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: int,
maximum: int,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_double(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: float,
maximum: float,
default_value: float,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_enum(
name: str,
nick: Optional[str],
blurb: Optional[str],
enum_type: Type,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_flags(
name: str,
nick: Optional[str],
blurb: Optional[str],
flags_type: Type,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_float(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: float,
maximum: float,
default_value: float,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_gtype(
name: str,
nick: Optional[str],
blurb: Optional[str],
is_a_type: Type,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_int(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: int,
maximum: int,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_int64(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: int,
maximum: int,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_long(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: int,
maximum: int,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_object(
name: str,
nick: Optional[str],
blurb: Optional[str],
object_type: Type,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_param(
name: str,
nick: Optional[str],
blurb: Optional[str],
param_type: Type,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_pointer(
name: str, nick: Optional[str], blurb: Optional[str], flags: ParamFlags
) -> ParamSpec: ...
def param_spec_string(
name: str,
nick: Optional[str],
blurb: Optional[str],
default_value: Optional[str],
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_uchar(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: int,
maximum: int,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_uint(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: int,
maximum: int,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_uint64(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: int,
maximum: int,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_ulong(
name: str,
nick: Optional[str],
blurb: Optional[str],
minimum: int,
maximum: int,
default_value: int,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_unichar(
name: str,
nick: Optional[str],
blurb: Optional[str],
default_value: str,
flags: ParamFlags,
) -> ParamSpec: ...
def param_spec_variant(
name: str,
nick: Optional[str],
blurb: Optional[str],
type: GLib.VariantType,
default_value: Optional[GLib.Variant],
flags: ParamFlags,
) -> ParamSpec: ...
def param_type_register_static(name: str, pspec_info: ParamSpecTypeInfo) -> Type: ...
def param_value_convert(
pspec: ParamSpec, src_value: Any, dest_value: Any, strict_validation: bool
) -> bool: ...
def param_value_defaults(pspec: ParamSpec, value: Any) -> bool: ...
def param_value_is_valid(pspec: ParamSpec, value: Any) -> bool: ...
def param_value_set_default(pspec: ParamSpec, value: Any) -> None: ...
def param_value_validate(pspec: ParamSpec, value: Any) -> bool: ...
def param_values_cmp(pspec: ParamSpec, value1: Any, value2: Any) -> int: ...
def pointer_type_register_static(name: str) -> Type: ...
def remove_emission_hook(obj, detailed_signal, hook_id): ... # FIXME Function
def set_application_name(application_name: str) -> None: ...
def set_prgname(prgname: str) -> None: ...
def signal_accumulator_first_wins(
ihint, return_accu, handler_return, user_data=None
): ... # FIXME Function
def signal_accumulator_true_handled(
ihint, return_accu, handler_return, user_data=None
): ... # FIXME Function
def signal_add_emission_hook(
signal_id: int, detail: int, hook_func: Callable[..., bool], *hook_data: Any
) -> int: ...
def signal_chain_from_overridden(
instance_and_params: Sequence[Any], return_value: Any
) -> None: ...
def signal_connect_closure(
instance: Object, detailed_signal: str, closure: Callable[..., Any], after: bool
) -> int: ...
def signal_connect_closure_by_id(
instance: Object,
signal_id: int,
detail: int,
closure: Callable[..., Any],
after: bool,
) -> int: ...
def signal_emitv(
instance_and_params: Sequence[Any], signal_id: int, detail: int
) -> Any: ...
def signal_get_invocation_hint(instance: Object) -> Optional[SignalInvocationHint]: ...
def signal_handler_block(obj, handler_id): ... # FIXME Function
def signal_handler_disconnect(instance: Object, handler_id: int) -> None: ...
# override
def signal_handler_find(
instance: Object,
mask: SignalMatchType,
signal_id: int,
detail: int,
_closure: Optional[Callable[..., Any]],
func: None,
data: None,
*closure: Any,
) -> int: ...
def signal_handler_is_connected(instance: Object, handler_id: int) -> bool: ...
def signal_handler_unblock(instance: Object, handler_id: int) -> None: ...
# override
def signal_handlers_block_matched(
instance: Object,
mask: SignalMatchType,
signal_id: int,
detail: int,
_closure: Optional[Callable[..., Any]],
func: None,
data: None,
*closure: Any,
) -> int: ...
def signal_handlers_destroy(instance: Object) -> None: ...
# override
def signal_handlers_disconnect_matched(
instance: Object,
mask: SignalMatchType,
signal_id: int,
detail: int,
_closure: Optional[Callable[..., Any]],
func: None,
data: None,
*closure: Any,
) -> int: ...
# override
def signal_handlers_unblock_matched(
instance: Object,
mask: SignalMatchType,
signal_id: int,
detail: int,
_closure: Optional[Callable[..., Any]],
func: None,
data: None,
*closure: Any,
) -> int: ...
def signal_has_handler_pending(
instance: Object, signal_id: int, detail: int, may_be_blocked: bool
) -> bool: ...
def signal_is_valid_name(name: str) -> bool: ...
def signal_list_ids(type_): ... # FIXME Function
def signal_list_names(type_): ... # FIXME Function
def signal_lookup(name, type_): ... # FIXME Function
def signal_name(signal_id: int) -> Optional[str]: ...
def signal_new(*args, **kwargs): ... # FIXME Function
def signal_newv(
signal_name: str,
itype: Type,
signal_flags: SignalFlags,
class_closure: Optional[Callable[..., Any]],
accumulator: Optional[Callable[..., bool]],
c_marshaller: Optional[
Callable[[Callable[..., Any], Optional[Any], Sequence[Any], None, None], None]
],
return_type: Type,
param_types: Optional[Sequence[Type]] = None,
*accu_data: Any,
) -> int: ...
def signal_override_class_closure(
signal_id: int, instance_type: Type, class_closure: Callable[..., Any]
) -> None: ...
def signal_override_class_handler(
signal_name: str, instance_type: Type, class_handler: Callable[[], None]
) -> None: ...
def signal_parse_name(detailed_signal, itype, force_detail_quark): ... # FIXME Function
def signal_query(id_or_name, type_=None): ... # FIXME Function
def signal_remove_emission_hook(signal_id: int, hook_id: int) -> None: ...
def signal_set_va_marshaller(
signal_id: int, instance_type: Type, va_marshaller: VaClosureMarshal
) -> None: ...
def signal_stop_emission(instance: Object, signal_id: int, detail: int) -> None: ...
def signal_stop_emission_by_name(instance: Object, detailed_signal: str) -> None: ...
def signal_type_cclosure_new(itype: Type, struct_offset: int) -> Callable[..., Any]: ...
def source_remove(tag: int) -> bool: ...
def source_set_closure(source: GLib.Source, closure: Callable[..., Any]) -> None: ...
def source_set_dummy_callback(source: GLib.Source) -> None: ...
def spawn_async(*args, **kwargs): ... # FIXME Function
def strdup_value_contents(value: Any) -> str: ...
def threads_init(): ... # FIXME Function
def timeout_add(interval, function, *user_data, **kwargs): ... # FIXME Function
def timeout_add_seconds(interval, function, *user_data, **kwargs): ... # FIXME Function
def type_add_class_private(class_type: Type, private_size: int) -> None: ...
def type_add_instance_private(class_type: Type, private_size: int) -> int: ...
def type_add_interface_dynamic(
instance_type: Type, interface_type: Type, plugin: TypePlugin
) -> None: ...
def type_add_interface_static(
instance_type: Type, interface_type: Type, info: InterfaceInfo
) -> None: ...
def type_check_class_is_a(g_class: TypeClass, is_a_type: Type) -> bool: ...
def type_check_instance(instance: TypeInstance) -> bool: ...
def type_check_instance_is_a(instance: TypeInstance, iface_type: Type) -> bool: ...
def type_check_instance_is_fundamentally_a(
instance: TypeInstance, fundamental_type: Type
) -> bool: ...
def type_check_is_value_type(type: Type) -> bool: ...
def type_check_value(value: Any) -> bool: ...
def type_check_value_holds(value: Any, type: Type) -> bool: ...
def type_children(type: Type) -> list[Type]: ...
def type_class_adjust_private_offset(
g_class: None, private_size_or_offset: int
) -> None: ...
def type_class_peek(type: Type) -> TypeClass: ...
def type_class_peek_static(type: Type) -> TypeClass: ...
def type_class_ref(type: Type) -> TypeClass: ...
def type_default_interface_peek(g_type: Type) -> TypeInterface: ...
def type_default_interface_ref(g_type: Type) -> TypeInterface: ...
def type_default_interface_unref(g_iface: TypeInterface) -> None: ...
def type_depth(type: Type) -> int: ...
def type_ensure(type: Type) -> None: ...
def type_free_instance(instance: TypeInstance) -> None: ...
def type_from_name(name): ... # FIXME Function
def type_fundamental(type_id: Type) -> Type: ...
def type_fundamental_next() -> Type: ...
def type_get_instance_count(type: Type) -> int: ...
def type_get_plugin(type: Type) -> TypePlugin: ...
def type_get_qdata(type: Type, quark: int) -> None: ...
def type_get_type_registration_serial() -> int: ...
def type_init() -> None: ...
def type_init_with_debug_flags(debug_flags: TypeDebugFlags) -> None: ...
def type_interface_add_prerequisite(
interface_type: Type, prerequisite_type: Type
) -> None: ...
def type_interface_get_plugin(
instance_type: Type, interface_type: Type
) -> TypePlugin: ...
def type_interface_instantiatable_prerequisite(interface_type: Type) -> Type: ...
def type_interface_peek(
instance_class: TypeClass, iface_type: Type
) -> TypeInterface: ...
def type_interface_prerequisites(interface_type: Type) -> list[Type]: ...
def type_interfaces(type: Type) -> list[Type]: ...
def type_is_a(type: Type, is_a_type: Type) -> bool: ...
def type_name(type: Type) -> Optional[str]: ...
def type_name_from_class(g_class: TypeClass) -> str: ...
def type_name_from_instance(instance: TypeInstance) -> str: ...
def type_next_base(leaf_type: Type, root_type: Type) -> Type: ...
def type_parent(type_): ... # FIXME Function
def type_qname(type: Type) -> int: ...
def type_query(type: Type) -> TypeQuery: ...
def type_register(*args, **kwargs): ... # FIXME Function
def type_register_dynamic(
parent_type: Type, type_name: str, plugin: TypePlugin, flags: TypeFlags
) -> Type: ...
def type_register_fundamental(
type_id: Type,
type_name: str,
info: TypeInfo,
finfo: TypeFundamentalInfo,
flags: TypeFlags,
) -> Type: ...
def type_register_static(
parent_type: Type, type_name: str, info: TypeInfo, flags: TypeFlags
) -> Type: ...
def type_set_qdata(type: Type, quark: int, data: None) -> None: ...
def type_test_flags(type: Type, flags: int) -> bool: ...
def uri_list_extract_uris(uri_list: str) -> list[str]: ...
def value_type_compatible(src_type: Type, dest_type: Type) -> bool: ...
def value_type_transformable(src_type: Type, dest_type: Type) -> bool: ...
def variant_get_gtype() -> Type: ...
# override
class _HandlerBlockManager:
def __init__(self, obj, handler_id: int) -> None: ...
def __enter__(self) -> None: ...
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
class Array(GBoxed): ...
class Binding(Object):
"""
:Constructors:
::
Binding(**properties)
Object GBinding
Properties from GBinding:
source -> GObject: source
target -> GObject: target
source-property -> gchararray: source-property
target-property -> gchararray: target-property
flags -> GBindingFlags: flags
Signals from GObject:
notify (GParam)
"""
class Props:
flags: BindingFlags
source: Optional[Object]
source_property: str
target: Optional[Object]
target_property: str
props: Props = ...
# override
def __init__(
self,
flags: BindingFlags = ...,
source: Object = ...,
source_property: str = ...,
target: Object = ...,
target_property: str = ...,
) -> None: ...
def dup_source(self) -> Optional[Object]: ...
def dup_target(self) -> Optional[Object]: ...
def get_flags(self) -> BindingFlags: ...
def get_source(self) -> Optional[Object]: ...
def get_source_property(self) -> str: ...
def get_target(self) -> Optional[Object]: ...
def get_target_property(self) -> str: ...
# override
def unbind(self) -> None: ... # FIXME Function
class BindingGroup(Object):
"""
:Constructors:
::
BindingGroup(**properties)
new() -> GObject.BindingGroup
Object GBindingGroup
Properties from GBindingGroup:
source -> GObject: source
Signals from GObject:
notify (GParam)
"""
class Props:
source: Optional[Object]
props: Props = ...
def __init__(self, source: Optional[Object] = ...): ...
def bind(
self,
source_property: str,
target: Object,
target_property: str,
flags: BindingFlags,
) -> None: ...
def bind_full(
self,
source_property: str,
target: Object,
target_property: str,
flags: BindingFlags,
transform_to: Optional[Callable[..., Any]] = None,
transform_from: Optional[Callable[..., Any]] = None,
) -> None: ...
def dup_source(self) -> Optional[Object]: ...
@classmethod
def new(cls) -> BindingGroup: ...
def set_source(self, source: Optional[Object] = None) -> None: ...
class BookmarkFile(GBoxed): ...
class ByteArray(GBoxed): ...
class Bytes(GBoxed): ...
class CClosure(GPointer):
"""
:Constructors:
::
CClosure()
"""
closure: Callable[..., Any] = ...
callback: None = ...
@staticmethod
def marshal_BOOLEAN__BOXED_BOXED(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_BOOLEAN__FLAGS(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_STRING__OBJECT_POINTER(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__BOOLEAN(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__BOXED(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__CHAR(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__DOUBLE(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__ENUM(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__FLAGS(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__FLOAT(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__INT(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__LONG(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__OBJECT(
closure: Callable[..., Any],
return_value: Any,
n_param_values: int,
param_values: Any,
invocation_hint: None,
marshal_data: None,
) -> None: ...
@staticmethod
def marshal_VOID__PARAM(