@girs/gobject-2.0 2.77.0-3.2.2 → 2.77.0-3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/gobject-2.0-ambient.d.ts +0 -1
- package/gobject-2.0-ambient.js +2 -0
- package/gobject-2.0-import.d.ts +0 -1
- package/gobject-2.0-import.js +3 -0
- package/gobject-2.0.d.cts +82 -82
- package/gobject-2.0.d.ts +82 -82
- package/package.json +12 -6
package/gobject-2.0.d.ts
CHANGED
|
@@ -723,14 +723,14 @@ function enum_get_value(enum_class: EnumClass, value: number): EnumValue | null
|
|
|
723
723
|
* @param name the name to look up
|
|
724
724
|
* @returns the #GEnumValue with name @name, or %NULL if the enumeration doesn't have a member with that name
|
|
725
725
|
*/
|
|
726
|
-
function enum_get_value_by_name(enum_class: EnumClass, name: string
|
|
726
|
+
function enum_get_value_by_name(enum_class: EnumClass, name: string): EnumValue | null
|
|
727
727
|
/**
|
|
728
728
|
* Looks up a #GEnumValue by nickname.
|
|
729
729
|
* @param enum_class a #GEnumClass
|
|
730
730
|
* @param nick the nickname to look up
|
|
731
731
|
* @returns the #GEnumValue with nickname @nick, or %NULL if the enumeration doesn't have a member with that nickname
|
|
732
732
|
*/
|
|
733
|
-
function enum_get_value_by_nick(enum_class: EnumClass, nick: string
|
|
733
|
+
function enum_get_value_by_nick(enum_class: EnumClass, nick: string): EnumValue | null
|
|
734
734
|
/**
|
|
735
735
|
* Registers a new static enumeration type with the name `name`.
|
|
736
736
|
*
|
|
@@ -741,7 +741,7 @@ function enum_get_value_by_nick(enum_class: EnumClass, nick: string | null): Enu
|
|
|
741
741
|
* @param const_static_values An array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0. GObject keeps a reference to the data, so it cannot be stack-allocated.
|
|
742
742
|
* @returns The new type identifier.
|
|
743
743
|
*/
|
|
744
|
-
function enum_register_static(name: string
|
|
744
|
+
function enum_register_static(name: string, const_static_values: EnumValue): GType
|
|
745
745
|
/**
|
|
746
746
|
* Pretty-prints `value` in the form of the enum’s name.
|
|
747
747
|
*
|
|
@@ -773,14 +773,14 @@ function flags_get_first_value(flags_class: FlagsClass, value: number): FlagsVal
|
|
|
773
773
|
* @param name the name to look up
|
|
774
774
|
* @returns the #GFlagsValue with name @name, or %NULL if there is no flag with that name
|
|
775
775
|
*/
|
|
776
|
-
function flags_get_value_by_name(flags_class: FlagsClass, name: string
|
|
776
|
+
function flags_get_value_by_name(flags_class: FlagsClass, name: string): FlagsValue | null
|
|
777
777
|
/**
|
|
778
778
|
* Looks up a #GFlagsValue by nickname.
|
|
779
779
|
* @param flags_class a #GFlagsClass
|
|
780
780
|
* @param nick the nickname to look up
|
|
781
781
|
* @returns the #GFlagsValue with nickname @nick, or %NULL if there is no flag with that nickname
|
|
782
782
|
*/
|
|
783
|
-
function flags_get_value_by_nick(flags_class: FlagsClass, nick: string
|
|
783
|
+
function flags_get_value_by_nick(flags_class: FlagsClass, nick: string): FlagsValue | null
|
|
784
784
|
/**
|
|
785
785
|
* Registers a new static flags type with the name `name`.
|
|
786
786
|
*
|
|
@@ -791,7 +791,7 @@ function flags_get_value_by_nick(flags_class: FlagsClass, nick: string | null):
|
|
|
791
791
|
* @param const_static_values An array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0. GObject keeps a reference to the data, so it cannot be stack-allocated.
|
|
792
792
|
* @returns The new type identifier.
|
|
793
793
|
*/
|
|
794
|
-
function flags_register_static(name: string
|
|
794
|
+
function flags_register_static(name: string, const_static_values: FlagsValue): GType
|
|
795
795
|
/**
|
|
796
796
|
* Pretty-prints `value` in the form of the flag names separated by ` | ` and
|
|
797
797
|
* sorted. Any extra bits will be shown at the end as a hexadecimal number.
|
|
@@ -819,7 +819,7 @@ function gtype_get_type(): GType
|
|
|
819
819
|
* @param flags flags for the property specified
|
|
820
820
|
* @returns a newly created parameter specification
|
|
821
821
|
*/
|
|
822
|
-
function param_spec_boolean(name: string
|
|
822
|
+
function param_spec_boolean(name: string, nick: string | null, blurb: string | null, default_value: boolean, flags: ParamFlags): ParamSpec
|
|
823
823
|
/**
|
|
824
824
|
* Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_BOXED
|
|
825
825
|
* derived property.
|
|
@@ -832,7 +832,7 @@ function param_spec_boolean(name: string | null, nick: string | null, blurb: str
|
|
|
832
832
|
* @param flags flags for the property specified
|
|
833
833
|
* @returns a newly created parameter specification
|
|
834
834
|
*/
|
|
835
|
-
function param_spec_boxed(name: string
|
|
835
|
+
function param_spec_boxed(name: string, nick: string | null, blurb: string | null, boxed_type: GType, flags: ParamFlags): ParamSpec
|
|
836
836
|
/**
|
|
837
837
|
* Creates a new #GParamSpecChar instance specifying a %G_TYPE_CHAR property.
|
|
838
838
|
* @param name canonical name of the property specified
|
|
@@ -844,7 +844,7 @@ function param_spec_boxed(name: string | null, nick: string | null, blurb: strin
|
|
|
844
844
|
* @param flags flags for the property specified
|
|
845
845
|
* @returns a newly created parameter specification
|
|
846
846
|
*/
|
|
847
|
-
function param_spec_char(name: string
|
|
847
|
+
function param_spec_char(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
848
848
|
/**
|
|
849
849
|
* Creates a new #GParamSpecDouble instance specifying a %G_TYPE_DOUBLE
|
|
850
850
|
* property.
|
|
@@ -859,7 +859,7 @@ function param_spec_char(name: string | null, nick: string | null, blurb: string
|
|
|
859
859
|
* @param flags flags for the property specified
|
|
860
860
|
* @returns a newly created parameter specification
|
|
861
861
|
*/
|
|
862
|
-
function param_spec_double(name: string
|
|
862
|
+
function param_spec_double(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
863
863
|
/**
|
|
864
864
|
* Creates a new #GParamSpecEnum instance specifying a %G_TYPE_ENUM
|
|
865
865
|
* property.
|
|
@@ -873,7 +873,7 @@ function param_spec_double(name: string | null, nick: string | null, blurb: stri
|
|
|
873
873
|
* @param flags flags for the property specified
|
|
874
874
|
* @returns a newly created parameter specification
|
|
875
875
|
*/
|
|
876
|
-
function param_spec_enum(name: string
|
|
876
|
+
function param_spec_enum(name: string, nick: string | null, blurb: string | null, enum_type: GType, default_value: number, flags: ParamFlags): ParamSpec
|
|
877
877
|
/**
|
|
878
878
|
* Creates a new #GParamSpecFlags instance specifying a %G_TYPE_FLAGS
|
|
879
879
|
* property.
|
|
@@ -887,7 +887,7 @@ function param_spec_enum(name: string | null, nick: string | null, blurb: string
|
|
|
887
887
|
* @param flags flags for the property specified
|
|
888
888
|
* @returns a newly created parameter specification
|
|
889
889
|
*/
|
|
890
|
-
function param_spec_flags(name: string
|
|
890
|
+
function param_spec_flags(name: string, nick: string | null, blurb: string | null, flags_type: GType, default_value: number, flags: ParamFlags): ParamSpec
|
|
891
891
|
/**
|
|
892
892
|
* Creates a new #GParamSpecFloat instance specifying a %G_TYPE_FLOAT property.
|
|
893
893
|
*
|
|
@@ -901,7 +901,7 @@ function param_spec_flags(name: string | null, nick: string | null, blurb: strin
|
|
|
901
901
|
* @param flags flags for the property specified
|
|
902
902
|
* @returns a newly created parameter specification
|
|
903
903
|
*/
|
|
904
|
-
function param_spec_float(name: string
|
|
904
|
+
function param_spec_float(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
905
905
|
/**
|
|
906
906
|
* Creates a new #GParamSpecGType instance specifying a
|
|
907
907
|
* %G_TYPE_GTYPE property.
|
|
@@ -914,7 +914,7 @@ function param_spec_float(name: string | null, nick: string | null, blurb: strin
|
|
|
914
914
|
* @param flags flags for the property specified
|
|
915
915
|
* @returns a newly created parameter specification
|
|
916
916
|
*/
|
|
917
|
-
function param_spec_gtype(name: string
|
|
917
|
+
function param_spec_gtype(name: string, nick: string | null, blurb: string | null, is_a_type: GType, flags: ParamFlags): ParamSpec
|
|
918
918
|
/**
|
|
919
919
|
* Creates a new #GParamSpecInt instance specifying a %G_TYPE_INT property.
|
|
920
920
|
*
|
|
@@ -928,7 +928,7 @@ function param_spec_gtype(name: string | null, nick: string | null, blurb: strin
|
|
|
928
928
|
* @param flags flags for the property specified
|
|
929
929
|
* @returns a newly created parameter specification
|
|
930
930
|
*/
|
|
931
|
-
function param_spec_int(name: string
|
|
931
|
+
function param_spec_int(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
932
932
|
/**
|
|
933
933
|
* Creates a new #GParamSpecInt64 instance specifying a %G_TYPE_INT64 property.
|
|
934
934
|
*
|
|
@@ -942,7 +942,7 @@ function param_spec_int(name: string | null, nick: string | null, blurb: string
|
|
|
942
942
|
* @param flags flags for the property specified
|
|
943
943
|
* @returns a newly created parameter specification
|
|
944
944
|
*/
|
|
945
|
-
function param_spec_int64(name: string
|
|
945
|
+
function param_spec_int64(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
946
946
|
/**
|
|
947
947
|
* Creates a new #GParamSpecLong instance specifying a %G_TYPE_LONG property.
|
|
948
948
|
*
|
|
@@ -956,7 +956,7 @@ function param_spec_int64(name: string | null, nick: string | null, blurb: strin
|
|
|
956
956
|
* @param flags flags for the property specified
|
|
957
957
|
* @returns a newly created parameter specification
|
|
958
958
|
*/
|
|
959
|
-
function param_spec_long(name: string
|
|
959
|
+
function param_spec_long(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
960
960
|
/**
|
|
961
961
|
* Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_OBJECT
|
|
962
962
|
* derived property.
|
|
@@ -969,7 +969,7 @@ function param_spec_long(name: string | null, nick: string | null, blurb: string
|
|
|
969
969
|
* @param flags flags for the property specified
|
|
970
970
|
* @returns a newly created parameter specification
|
|
971
971
|
*/
|
|
972
|
-
function param_spec_object(name: string
|
|
972
|
+
function param_spec_object(name: string, nick: string | null, blurb: string | null, object_type: GType, flags: ParamFlags): ParamSpec
|
|
973
973
|
/**
|
|
974
974
|
* Creates a new #GParamSpecParam instance specifying a %G_TYPE_PARAM
|
|
975
975
|
* property.
|
|
@@ -982,7 +982,7 @@ function param_spec_object(name: string | null, nick: string | null, blurb: stri
|
|
|
982
982
|
* @param flags flags for the property specified
|
|
983
983
|
* @returns a newly created parameter specification
|
|
984
984
|
*/
|
|
985
|
-
function param_spec_param(name: string
|
|
985
|
+
function param_spec_param(name: string, nick: string | null, blurb: string | null, param_type: GType, flags: ParamFlags): ParamSpec
|
|
986
986
|
/**
|
|
987
987
|
* Creates a new #GParamSpecPointer instance specifying a pointer property.
|
|
988
988
|
* Where possible, it is better to use g_param_spec_object() or
|
|
@@ -995,7 +995,7 @@ function param_spec_param(name: string | null, nick: string | null, blurb: strin
|
|
|
995
995
|
* @param flags flags for the property specified
|
|
996
996
|
* @returns a newly created parameter specification
|
|
997
997
|
*/
|
|
998
|
-
function param_spec_pointer(name: string
|
|
998
|
+
function param_spec_pointer(name: string, nick: string | null, blurb: string | null, flags: ParamFlags): ParamSpec
|
|
999
999
|
/**
|
|
1000
1000
|
* Creates a new #GParamSpecString instance.
|
|
1001
1001
|
*
|
|
@@ -1007,7 +1007,7 @@ function param_spec_pointer(name: string | null, nick: string | null, blurb: str
|
|
|
1007
1007
|
* @param flags flags for the property specified
|
|
1008
1008
|
* @returns a newly created parameter specification
|
|
1009
1009
|
*/
|
|
1010
|
-
function param_spec_string(name: string
|
|
1010
|
+
function param_spec_string(name: string, nick: string | null, blurb: string | null, default_value: string | null, flags: ParamFlags): ParamSpec
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Creates a new #GParamSpecUChar instance specifying a %G_TYPE_UCHAR property.
|
|
1013
1013
|
* @param name canonical name of the property specified
|
|
@@ -1019,7 +1019,7 @@ function param_spec_string(name: string | null, nick: string | null, blurb: stri
|
|
|
1019
1019
|
* @param flags flags for the property specified
|
|
1020
1020
|
* @returns a newly created parameter specification
|
|
1021
1021
|
*/
|
|
1022
|
-
function param_spec_uchar(name: string
|
|
1022
|
+
function param_spec_uchar(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Creates a new #GParamSpecUInt instance specifying a %G_TYPE_UINT property.
|
|
1025
1025
|
*
|
|
@@ -1033,7 +1033,7 @@ function param_spec_uchar(name: string | null, nick: string | null, blurb: strin
|
|
|
1033
1033
|
* @param flags flags for the property specified
|
|
1034
1034
|
* @returns a newly created parameter specification
|
|
1035
1035
|
*/
|
|
1036
|
-
function param_spec_uint(name: string
|
|
1036
|
+
function param_spec_uint(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Creates a new #GParamSpecUInt64 instance specifying a %G_TYPE_UINT64
|
|
1039
1039
|
* property.
|
|
@@ -1048,7 +1048,7 @@ function param_spec_uint(name: string | null, nick: string | null, blurb: string
|
|
|
1048
1048
|
* @param flags flags for the property specified
|
|
1049
1049
|
* @returns a newly created parameter specification
|
|
1050
1050
|
*/
|
|
1051
|
-
function param_spec_uint64(name: string
|
|
1051
|
+
function param_spec_uint64(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Creates a new #GParamSpecULong instance specifying a %G_TYPE_ULONG
|
|
1054
1054
|
* property.
|
|
@@ -1063,7 +1063,7 @@ function param_spec_uint64(name: string | null, nick: string | null, blurb: stri
|
|
|
1063
1063
|
* @param flags flags for the property specified
|
|
1064
1064
|
* @returns a newly created parameter specification
|
|
1065
1065
|
*/
|
|
1066
|
-
function param_spec_ulong(name: string
|
|
1066
|
+
function param_spec_ulong(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Creates a new #GParamSpecUnichar instance specifying a %G_TYPE_UINT
|
|
1069
1069
|
* property. #GValue structures for this property can be accessed with
|
|
@@ -1077,7 +1077,7 @@ function param_spec_ulong(name: string | null, nick: string | null, blurb: strin
|
|
|
1077
1077
|
* @param flags flags for the property specified
|
|
1078
1078
|
* @returns a newly created parameter specification
|
|
1079
1079
|
*/
|
|
1080
|
-
function param_spec_unichar(name: string
|
|
1080
|
+
function param_spec_unichar(name: string, nick: string | null, blurb: string | null, default_value: string, flags: ParamFlags): ParamSpec
|
|
1081
1081
|
/**
|
|
1082
1082
|
* Creates a new #GParamSpecVariant instance specifying a #GVariant
|
|
1083
1083
|
* property.
|
|
@@ -1093,7 +1093,7 @@ function param_spec_unichar(name: string | null, nick: string | null, blurb: str
|
|
|
1093
1093
|
* @param flags flags for the property specified
|
|
1094
1094
|
* @returns the newly created #GParamSpec
|
|
1095
1095
|
*/
|
|
1096
|
-
function param_spec_variant(name: string
|
|
1096
|
+
function param_spec_variant(name: string, nick: string | null, blurb: string | null, type: GLib.VariantType, default_value: GLib.Variant | null, flags: ParamFlags): ParamSpec
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Registers `name` as the name of a new static type derived
|
|
1099
1099
|
* from %G_TYPE_PARAM.
|
|
@@ -1105,7 +1105,7 @@ function param_spec_variant(name: string | null, nick: string | null, blurb: str
|
|
|
1105
1105
|
* @param pspec_info The #GParamSpecTypeInfo for this #GParamSpec type.
|
|
1106
1106
|
* @returns The new type identifier.
|
|
1107
1107
|
*/
|
|
1108
|
-
function param_type_register_static(name: string
|
|
1108
|
+
function param_type_register_static(name: string, pspec_info: ParamSpecTypeInfo): GType
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Transforms `src_value` into `dest_value` if possible, and then
|
|
1111
1111
|
* validates `dest_value,` in order for it to conform to `pspec`. If
|
|
@@ -1170,7 +1170,7 @@ function param_values_cmp(pspec: ParamSpec, value1: any, value2: any): number
|
|
|
1170
1170
|
* @param name the name of the new pointer type.
|
|
1171
1171
|
* @returns a new %G_TYPE_POINTER derived type id for @name.
|
|
1172
1172
|
*/
|
|
1173
|
-
function pointer_type_register_static(name: string
|
|
1173
|
+
function pointer_type_register_static(name: string): GType
|
|
1174
1174
|
/**
|
|
1175
1175
|
* A predefined #GSignalAccumulator for signals intended to be used as a
|
|
1176
1176
|
* hook for application code to provide a particular value. Usually
|
|
@@ -1233,7 +1233,7 @@ function signal_chain_from_overridden(instance_and_params: any[], return_value:
|
|
|
1233
1233
|
* @param after whether the handler should be called before or after the default handler of the signal.
|
|
1234
1234
|
* @returns the handler ID (always greater than 0 for successful connections)
|
|
1235
1235
|
*/
|
|
1236
|
-
function signal_connect_closure(instance: Object, detailed_signal: string
|
|
1236
|
+
function signal_connect_closure(instance: Object, detailed_signal: string, closure: TClosure, after: boolean): number
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Connects a closure to a signal for a particular object.
|
|
1239
1239
|
*
|
|
@@ -1442,7 +1442,7 @@ function signal_has_handler_pending(instance: Object, signal_id: number, detail:
|
|
|
1442
1442
|
* @param name the canonical name of the signal
|
|
1443
1443
|
* @returns %TRUE if @name is a valid signal name, %FALSE otherwise.
|
|
1444
1444
|
*/
|
|
1445
|
-
function signal_is_valid_name(name: string
|
|
1445
|
+
function signal_is_valid_name(name: string): boolean
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Lists the signals by id that a certain instance or interface type
|
|
1448
1448
|
* created. Further information about the signals can be acquired through
|
|
@@ -1467,7 +1467,7 @@ function signal_list_ids(itype: GType): number[]
|
|
|
1467
1467
|
* @param itype the type that the signal operates on.
|
|
1468
1468
|
* @returns the signal's identifying number, or 0 if no signal was found.
|
|
1469
1469
|
*/
|
|
1470
|
-
function signal_lookup(name: string
|
|
1470
|
+
function signal_lookup(name: string, itype: GType): number
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Given the signal's identifier, finds its name.
|
|
1473
1473
|
*
|
|
@@ -1497,7 +1497,7 @@ function signal_override_class_closure(signal_id: number, instance_type: GType,
|
|
|
1497
1497
|
* @param force_detail_quark %TRUE forces creation of a #GQuark for the detail.
|
|
1498
1498
|
* @returns Whether the signal name could successfully be parsed and @signal_id_p and @detail_p contain valid return values.
|
|
1499
1499
|
*/
|
|
1500
|
-
function signal_parse_name(detailed_signal: string
|
|
1500
|
+
function signal_parse_name(detailed_signal: string, itype: GType, force_detail_quark: boolean): [ /* returnType */ boolean, /* signal_id_p */ number, /* detail_p */ GLib.Quark ]
|
|
1501
1501
|
/**
|
|
1502
1502
|
* Queries the signal system for in-depth information about a
|
|
1503
1503
|
* specific signal. This function will fill in a user-provided
|
|
@@ -1545,7 +1545,7 @@ function signal_stop_emission(instance: Object, signal_id: number, detail: GLib.
|
|
|
1545
1545
|
* @param instance the object whose signal handlers you wish to stop.
|
|
1546
1546
|
* @param detailed_signal a string of the form "signal-name::detail".
|
|
1547
1547
|
*/
|
|
1548
|
-
function signal_stop_emission_by_name(instance: Object, detailed_signal: string
|
|
1548
|
+
function signal_stop_emission_by_name(instance: Object, detailed_signal: string): void
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Creates a new closure which invokes the function found at the offset
|
|
1551
1551
|
* `struct_offset` in the class structure of the interface or classed type
|
|
@@ -1739,7 +1739,7 @@ function type_free_instance(instance: TypeInstance): void
|
|
|
1739
1739
|
* @param name type name to look up
|
|
1740
1740
|
* @returns corresponding type ID or 0
|
|
1741
1741
|
*/
|
|
1742
|
-
function type_from_name(name: string
|
|
1742
|
+
function type_from_name(name: string): GType
|
|
1743
1743
|
/**
|
|
1744
1744
|
* Internal function, used to extract the fundamental type ID portion.
|
|
1745
1745
|
* Use G_TYPE_FUNDAMENTAL() instead.
|
|
@@ -1878,8 +1878,8 @@ function type_is_a(type: GType, is_a_type: GType): boolean
|
|
|
1878
1878
|
* @returns static type name or %NULL
|
|
1879
1879
|
*/
|
|
1880
1880
|
function type_name(type: GType): string | null
|
|
1881
|
-
function type_name_from_class(g_class: TypeClass): string
|
|
1882
|
-
function type_name_from_instance(instance: TypeInstance): string
|
|
1881
|
+
function type_name_from_class(g_class: TypeClass): string
|
|
1882
|
+
function type_name_from_instance(instance: TypeInstance): string
|
|
1883
1883
|
/**
|
|
1884
1884
|
* Given a `leaf_type` and a `root_type` which is contained in its
|
|
1885
1885
|
* ancestry, return the type that `root_type` is the immediate parent
|
|
@@ -1928,7 +1928,7 @@ function type_query(type: GType): /* query */ TypeQuery
|
|
|
1928
1928
|
* @param flags bitwise combination of #GTypeFlags values
|
|
1929
1929
|
* @returns the new type identifier or %G_TYPE_INVALID if registration failed
|
|
1930
1930
|
*/
|
|
1931
|
-
function type_register_dynamic(parent_type: GType, type_name: string
|
|
1931
|
+
function type_register_dynamic(parent_type: GType, type_name: string, plugin: TypePlugin, flags: TypeFlags): GType
|
|
1932
1932
|
/**
|
|
1933
1933
|
* Registers `type_id` as the predefined identifier and `type_name` as the
|
|
1934
1934
|
* name of a fundamental type. If `type_id` is already registered, or a
|
|
@@ -1944,7 +1944,7 @@ function type_register_dynamic(parent_type: GType, type_name: string | null, plu
|
|
|
1944
1944
|
* @param flags bitwise combination of #GTypeFlags values
|
|
1945
1945
|
* @returns the predefined type identifier
|
|
1946
1946
|
*/
|
|
1947
|
-
function type_register_fundamental(type_id: GType, type_name: string
|
|
1947
|
+
function type_register_fundamental(type_id: GType, type_name: string, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags): GType
|
|
1948
1948
|
/**
|
|
1949
1949
|
* Registers `type_name` as the name of a new static type derived from
|
|
1950
1950
|
* `parent_type`. The type system uses the information contained in the
|
|
@@ -1957,7 +1957,7 @@ function type_register_fundamental(type_id: GType, type_name: string | null, inf
|
|
|
1957
1957
|
* @param flags bitwise combination of #GTypeFlags values
|
|
1958
1958
|
* @returns the new type identifier
|
|
1959
1959
|
*/
|
|
1960
|
-
function type_register_static(parent_type: GType, type_name: string
|
|
1960
|
+
function type_register_static(parent_type: GType, type_name: string, info: TypeInfo, flags: TypeFlags): GType
|
|
1961
1961
|
/**
|
|
1962
1962
|
* Attaches arbitrary data to a type.
|
|
1963
1963
|
* @param type a #GType
|
|
@@ -3040,7 +3040,7 @@ module Binding {
|
|
|
3040
3040
|
* This should be in [canonical form][canonical-parameter-names] to get the
|
|
3041
3041
|
* best performance.
|
|
3042
3042
|
*/
|
|
3043
|
-
|
|
3043
|
+
sourceProperty?: string | null
|
|
3044
3044
|
/**
|
|
3045
3045
|
* The #GObject that should be used as the target of the binding
|
|
3046
3046
|
*/
|
|
@@ -3052,7 +3052,7 @@ module Binding {
|
|
|
3052
3052
|
* This should be in [canonical form][canonical-parameter-names] to get the
|
|
3053
3053
|
* best performance.
|
|
3054
3054
|
*/
|
|
3055
|
-
|
|
3055
|
+
targetProperty?: string | null
|
|
3056
3056
|
}
|
|
3057
3057
|
|
|
3058
3058
|
}
|
|
@@ -3076,7 +3076,7 @@ interface Binding {
|
|
|
3076
3076
|
* This should be in [canonical form][canonical-parameter-names] to get the
|
|
3077
3077
|
* best performance.
|
|
3078
3078
|
*/
|
|
3079
|
-
readonly
|
|
3079
|
+
readonly sourceProperty: string | null
|
|
3080
3080
|
/**
|
|
3081
3081
|
* The #GObject that should be used as the target of the binding
|
|
3082
3082
|
*/
|
|
@@ -3088,7 +3088,7 @@ interface Binding {
|
|
|
3088
3088
|
* This should be in [canonical form][canonical-parameter-names] to get the
|
|
3089
3089
|
* best performance.
|
|
3090
3090
|
*/
|
|
3091
|
-
readonly
|
|
3091
|
+
readonly targetProperty: string | null
|
|
3092
3092
|
|
|
3093
3093
|
// Owm methods of GObject-2.0.GObject.Binding
|
|
3094
3094
|
|
|
@@ -3133,7 +3133,7 @@ interface Binding {
|
|
|
3133
3133
|
* of the binding.
|
|
3134
3134
|
* @returns the name of the source property
|
|
3135
3135
|
*/
|
|
3136
|
-
get_source_property(): string
|
|
3136
|
+
get_source_property(): string
|
|
3137
3137
|
/**
|
|
3138
3138
|
* Retrieves the #GObject instance used as the target of the binding.
|
|
3139
3139
|
*
|
|
@@ -3152,7 +3152,7 @@ interface Binding {
|
|
|
3152
3152
|
* of the binding.
|
|
3153
3153
|
* @returns the name of the target property
|
|
3154
3154
|
*/
|
|
3155
|
-
get_target_property(): string
|
|
3155
|
+
get_target_property(): string
|
|
3156
3156
|
/**
|
|
3157
3157
|
* Explicitly releases the binding between the source and the target
|
|
3158
3158
|
* property expressed by `binding`.
|
|
@@ -3332,7 +3332,7 @@ interface BindingGroup {
|
|
|
3332
3332
|
* @param target_property the property on `target` to bind
|
|
3333
3333
|
* @param flags the flags used to create the #GBinding
|
|
3334
3334
|
*/
|
|
3335
|
-
bind(source_property: string
|
|
3335
|
+
bind(source_property: string, target: Object, target_property: string, flags: BindingFlags): void
|
|
3336
3336
|
/**
|
|
3337
3337
|
* Creates a binding between `source_property` on the source object and
|
|
3338
3338
|
* `target_property` on `target,` allowing you to set the transformation
|
|
@@ -3351,7 +3351,7 @@ interface BindingGroup {
|
|
|
3351
3351
|
* @param transform_to a #GClosure wrapping the transformation function from the source object to the `target,` or %NULL to use the default
|
|
3352
3352
|
* @param transform_from a #GClosure wrapping the transformation function from the `target` to the source object, or %NULL to use the default
|
|
3353
3353
|
*/
|
|
3354
|
-
bind_full(source_property: string
|
|
3354
|
+
bind_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: TClosure | null, transform_from: TClosure | null): void
|
|
3355
3355
|
/**
|
|
3356
3356
|
* Gets the source object used for binding properties.
|
|
3357
3357
|
* @returns a #GObject or %NULL.
|
|
@@ -3523,7 +3523,7 @@ interface Object {
|
|
|
3523
3523
|
* @param flags flags to pass to #GBinding
|
|
3524
3524
|
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
3525
3525
|
*/
|
|
3526
|
-
bind_property(source_property: string
|
|
3526
|
+
bind_property(source_property: string, target: Object, target_property: string, flags: BindingFlags): Binding
|
|
3527
3527
|
/**
|
|
3528
3528
|
* Creates a binding between `source_property` on `source` and `target_property`
|
|
3529
3529
|
* on `target,` allowing you to set the transformation functions to be used by
|
|
@@ -3540,7 +3540,7 @@ interface Object {
|
|
|
3540
3540
|
* @param transform_from a #GClosure wrapping the transformation function from the `target` to the `source,` or %NULL to use the default
|
|
3541
3541
|
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
3542
3542
|
*/
|
|
3543
|
-
bind_property_full(source_property: string
|
|
3543
|
+
bind_property_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: TClosure, transform_from: TClosure): Binding
|
|
3544
3544
|
/**
|
|
3545
3545
|
* This function is intended for #GObject implementations to re-enforce
|
|
3546
3546
|
* a [floating][floating-ref] object reference. Doing this is seldom
|
|
@@ -3565,7 +3565,7 @@ interface Object {
|
|
|
3565
3565
|
* @param key name of the key for that association
|
|
3566
3566
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3567
3567
|
*/
|
|
3568
|
-
get_data(key: string
|
|
3568
|
+
get_data(key: string): any | null
|
|
3569
3569
|
/**
|
|
3570
3570
|
* Gets a property of an object.
|
|
3571
3571
|
*
|
|
@@ -3586,7 +3586,7 @@ interface Object {
|
|
|
3586
3586
|
* @param property_name the name of the property to get
|
|
3587
3587
|
* @param value return location for the property value
|
|
3588
3588
|
*/
|
|
3589
|
-
get_property(property_name: string
|
|
3589
|
+
get_property(property_name: string, value: any): void
|
|
3590
3590
|
/**
|
|
3591
3591
|
* This function gets back user data pointers stored via
|
|
3592
3592
|
* g_object_set_qdata().
|
|
@@ -3621,7 +3621,7 @@ interface Object {
|
|
|
3621
3621
|
* called.
|
|
3622
3622
|
* @param property_name the name of a property installed on the class of `object`.
|
|
3623
3623
|
*/
|
|
3624
|
-
notify(property_name: string
|
|
3624
|
+
notify(property_name: string): void
|
|
3625
3625
|
/**
|
|
3626
3626
|
* Emits a "notify" signal for the property specified by `pspec` on `object`.
|
|
3627
3627
|
*
|
|
@@ -3713,20 +3713,20 @@ interface Object {
|
|
|
3713
3713
|
* @param key name of the key
|
|
3714
3714
|
* @param data data to associate with that key
|
|
3715
3715
|
*/
|
|
3716
|
-
set_data(key: string
|
|
3716
|
+
set_data(key: string, data: any | null): void
|
|
3717
3717
|
/**
|
|
3718
3718
|
* Sets a property on an object.
|
|
3719
3719
|
* @param property_name the name of the property to set
|
|
3720
3720
|
* @param value the value
|
|
3721
3721
|
*/
|
|
3722
|
-
set_property(property_name: string
|
|
3722
|
+
set_property(property_name: string, value: any): void
|
|
3723
3723
|
/**
|
|
3724
3724
|
* Remove a specified datum from the object's data associations,
|
|
3725
3725
|
* without invoking the association's destroy handler.
|
|
3726
3726
|
* @param key name of the key
|
|
3727
3727
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3728
3728
|
*/
|
|
3729
|
-
steal_data(key: string
|
|
3729
|
+
steal_data(key: string): any | null
|
|
3730
3730
|
/**
|
|
3731
3731
|
* This function gets back user data pointers stored via
|
|
3732
3732
|
* g_object_set_qdata() and removes the `data` from object
|
|
@@ -3891,7 +3891,7 @@ class Object {
|
|
|
3891
3891
|
* @param property_name name of a property to look up.
|
|
3892
3892
|
* @returns the #GParamSpec for the property of the interface with the name @property_name, or %NULL if no such property exists.
|
|
3893
3893
|
*/
|
|
3894
|
-
static interface_find_property(g_iface: TypeInterface, property_name: string
|
|
3894
|
+
static interface_find_property(g_iface: TypeInterface, property_name: string): ParamSpec
|
|
3895
3895
|
/**
|
|
3896
3896
|
* Add a property to an interface; this is only useful for interfaces
|
|
3897
3897
|
* that are added to GObject-derived types. Adding a property to an
|
|
@@ -3937,7 +3937,7 @@ interface ParamSpec {
|
|
|
3937
3937
|
* name of this parameter: always an interned string
|
|
3938
3938
|
* @field
|
|
3939
3939
|
*/
|
|
3940
|
-
name: string
|
|
3940
|
+
name: string
|
|
3941
3941
|
/**
|
|
3942
3942
|
* #GParamFlags flags for this parameter
|
|
3943
3943
|
* @field
|
|
@@ -3975,7 +3975,7 @@ interface ParamSpec {
|
|
|
3975
3975
|
* This allows for pointer-value comparisons.
|
|
3976
3976
|
* @returns the name of @pspec.
|
|
3977
3977
|
*/
|
|
3978
|
-
get_name(): string
|
|
3978
|
+
get_name(): string
|
|
3979
3979
|
/**
|
|
3980
3980
|
* Gets the GQuark for the name.
|
|
3981
3981
|
* @returns the GQuark for @pspec->name.
|
|
@@ -3985,7 +3985,7 @@ interface ParamSpec {
|
|
|
3985
3985
|
* Get the nickname of a #GParamSpec.
|
|
3986
3986
|
* @returns the nickname of @pspec.
|
|
3987
3987
|
*/
|
|
3988
|
-
get_nick(): string
|
|
3988
|
+
get_nick(): string
|
|
3989
3989
|
/**
|
|
3990
3990
|
* Gets back user data pointers stored via g_param_spec_set_qdata().
|
|
3991
3991
|
* @param quark a #GQuark, naming the user data pointer
|
|
@@ -4077,7 +4077,7 @@ class ParamSpec {
|
|
|
4077
4077
|
* @param name the canonical name of the property
|
|
4078
4078
|
* @returns %TRUE if @name is a valid property name, %FALSE otherwise.
|
|
4079
4079
|
*/
|
|
4080
|
-
static is_valid_name(name: string
|
|
4080
|
+
static is_valid_name(name: string): boolean
|
|
4081
4081
|
static char(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecChar
|
|
4082
4082
|
static uchar(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecUChar
|
|
4083
4083
|
static int(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecInt
|
|
@@ -4896,7 +4896,7 @@ module SignalGroup {
|
|
|
4896
4896
|
/**
|
|
4897
4897
|
* The #GType of the target property.
|
|
4898
4898
|
*/
|
|
4899
|
-
|
|
4899
|
+
targetType?: GType | null
|
|
4900
4900
|
}
|
|
4901
4901
|
|
|
4902
4902
|
}
|
|
@@ -4912,7 +4912,7 @@ interface SignalGroup {
|
|
|
4912
4912
|
/**
|
|
4913
4913
|
* The #GType of the target property.
|
|
4914
4914
|
*/
|
|
4915
|
-
readonly
|
|
4915
|
+
readonly targetType: GType
|
|
4916
4916
|
|
|
4917
4917
|
// Owm methods of GObject-2.0.GObject.SignalGroup
|
|
4918
4918
|
|
|
@@ -4932,7 +4932,7 @@ interface SignalGroup {
|
|
|
4932
4932
|
* @param closure the closure to connect.
|
|
4933
4933
|
* @param after whether the handler should be called before or after the default handler of the signal.
|
|
4934
4934
|
*/
|
|
4935
|
-
connect_closure(detailed_signal: string
|
|
4935
|
+
connect_closure(detailed_signal: string, closure: TClosure, after: boolean): void
|
|
4936
4936
|
/**
|
|
4937
4937
|
* Connects `c_handler` to the signal `detailed_signal`
|
|
4938
4938
|
* on the target instance of `self`.
|
|
@@ -4942,7 +4942,7 @@ interface SignalGroup {
|
|
|
4942
4942
|
* @param c_handler the #GCallback to connect
|
|
4943
4943
|
* @param flags the flags used to create the signal connection
|
|
4944
4944
|
*/
|
|
4945
|
-
connect_data(detailed_signal: string
|
|
4945
|
+
connect_data(detailed_signal: string, c_handler: Callback, flags: ConnectFlags): void
|
|
4946
4946
|
/**
|
|
4947
4947
|
* Connects `c_handler` to the signal `detailed_signal`
|
|
4948
4948
|
* on the target instance of `self`.
|
|
@@ -4954,7 +4954,7 @@ interface SignalGroup {
|
|
|
4954
4954
|
* @param detailed_signal a string of the form "signal-name::detail"
|
|
4955
4955
|
* @param c_handler the #GCallback to connect
|
|
4956
4956
|
*/
|
|
4957
|
-
connect_swapped(detailed_signal: string
|
|
4957
|
+
connect_swapped(detailed_signal: string, c_handler: Callback): void
|
|
4958
4958
|
/**
|
|
4959
4959
|
* Gets the target instance used when connecting signals.
|
|
4960
4960
|
* @returns The target instance
|
|
@@ -5104,7 +5104,7 @@ interface TypeModule extends TypePlugin {
|
|
|
5104
5104
|
* @param const_static_values an array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0.
|
|
5105
5105
|
* @returns the new or existing type ID
|
|
5106
5106
|
*/
|
|
5107
|
-
register_enum(name: string
|
|
5107
|
+
register_enum(name: string, const_static_values: EnumValue): GType
|
|
5108
5108
|
/**
|
|
5109
5109
|
* Looks up or registers a flags type that is implemented with a particular
|
|
5110
5110
|
* type plugin. If a type with name `type_name` was previously registered,
|
|
@@ -5120,7 +5120,7 @@ interface TypeModule extends TypePlugin {
|
|
|
5120
5120
|
* @param const_static_values an array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0.
|
|
5121
5121
|
* @returns the new or existing type ID
|
|
5122
5122
|
*/
|
|
5123
|
-
register_flags(name: string
|
|
5123
|
+
register_flags(name: string, const_static_values: FlagsValue): GType
|
|
5124
5124
|
/**
|
|
5125
5125
|
* Looks up or registers a type that is implemented with a particular
|
|
5126
5126
|
* type plugin. If a type with name `type_name` was previously registered,
|
|
@@ -5142,12 +5142,12 @@ interface TypeModule extends TypePlugin {
|
|
|
5142
5142
|
* @param flags flags field providing details about the type
|
|
5143
5143
|
* @returns the new or existing type ID
|
|
5144
5144
|
*/
|
|
5145
|
-
register_type(parent_type: GType, type_name: string
|
|
5145
|
+
register_type(parent_type: GType, type_name: string, type_info: TypeInfo, flags: TypeFlags): GType
|
|
5146
5146
|
/**
|
|
5147
5147
|
* Sets the name for a #GTypeModule
|
|
5148
5148
|
* @param name a human-readable name to use in error messages.
|
|
5149
5149
|
*/
|
|
5150
|
-
set_name(name: string
|
|
5150
|
+
set_name(name: string): void
|
|
5151
5151
|
/**
|
|
5152
5152
|
* Decreases the use count of a #GTypeModule by one. If the
|
|
5153
5153
|
* result is zero, the module will be unloaded. (However, the
|
|
@@ -5824,12 +5824,12 @@ interface EnumValue {
|
|
|
5824
5824
|
* the name of the value
|
|
5825
5825
|
* @field
|
|
5826
5826
|
*/
|
|
5827
|
-
value_name: string
|
|
5827
|
+
value_name: string
|
|
5828
5828
|
/**
|
|
5829
5829
|
* the nickname of the value
|
|
5830
5830
|
* @field
|
|
5831
5831
|
*/
|
|
5832
|
-
value_nick: string
|
|
5832
|
+
value_nick: string
|
|
5833
5833
|
}
|
|
5834
5834
|
|
|
5835
5835
|
/**
|
|
@@ -5896,12 +5896,12 @@ interface FlagsValue {
|
|
|
5896
5896
|
* the name of the value
|
|
5897
5897
|
* @field
|
|
5898
5898
|
*/
|
|
5899
|
-
value_name: string
|
|
5899
|
+
value_name: string
|
|
5900
5900
|
/**
|
|
5901
5901
|
* the nickname of the value
|
|
5902
5902
|
* @field
|
|
5903
5903
|
*/
|
|
5904
|
-
value_nick: string
|
|
5904
|
+
value_nick: string
|
|
5905
5905
|
}
|
|
5906
5906
|
|
|
5907
5907
|
/**
|
|
@@ -6002,7 +6002,7 @@ interface ObjectClass {
|
|
|
6002
6002
|
* @param property_name the name of the property to look up
|
|
6003
6003
|
* @returns the #GParamSpec for the property, or %NULL if the class doesn't have a property of that name
|
|
6004
6004
|
*/
|
|
6005
|
-
find_property(oclass: Object | Function | GType, property_name: string
|
|
6005
|
+
find_property(oclass: Object | Function | GType, property_name: string): ParamSpec
|
|
6006
6006
|
/**
|
|
6007
6007
|
* Installs new properties from an array of #GParamSpecs.
|
|
6008
6008
|
*
|
|
@@ -6114,7 +6114,7 @@ interface ObjectClass {
|
|
|
6114
6114
|
* @param property_id the new property ID
|
|
6115
6115
|
* @param name the name of a property registered in a parent class or in an interface of this class.
|
|
6116
6116
|
*/
|
|
6117
|
-
override_property(oclass: Object | Function | GType, property_id: number, name: string
|
|
6117
|
+
override_property(oclass: Object | Function | GType, property_id: number, name: string): void
|
|
6118
6118
|
}
|
|
6119
6119
|
|
|
6120
6120
|
/**
|
|
@@ -6248,7 +6248,7 @@ interface ParamSpecPool {
|
|
|
6248
6248
|
* @param walk_ancestors If %TRUE, also try to find a #GParamSpec with `param_name` owned by an ancestor of `owner_type`.
|
|
6249
6249
|
* @returns The found #GParamSpec, or %NULL if no matching #GParamSpec was found.
|
|
6250
6250
|
*/
|
|
6251
|
-
lookup(param_name: string
|
|
6251
|
+
lookup(param_name: string, owner_type: GType, walk_ancestors: boolean): ParamSpec | null
|
|
6252
6252
|
/**
|
|
6253
6253
|
* Removes a #GParamSpec from the pool.
|
|
6254
6254
|
* @param pspec the #GParamSpec to remove
|
|
@@ -6323,7 +6323,7 @@ interface Parameter {
|
|
|
6323
6323
|
* the parameter name
|
|
6324
6324
|
* @field
|
|
6325
6325
|
*/
|
|
6326
|
-
name: string
|
|
6326
|
+
name: string
|
|
6327
6327
|
/**
|
|
6328
6328
|
* the parameter value
|
|
6329
6329
|
* @field
|
|
@@ -6394,7 +6394,7 @@ interface SignalQuery {
|
|
|
6394
6394
|
* The signal name.
|
|
6395
6395
|
* @field
|
|
6396
6396
|
*/
|
|
6397
|
-
signal_name: string
|
|
6397
|
+
signal_name: string
|
|
6398
6398
|
/**
|
|
6399
6399
|
* The interface/instance type that this signal can be emitted for.
|
|
6400
6400
|
* @field
|
|
@@ -6858,7 +6858,7 @@ interface TypeQuery {
|
|
|
6858
6858
|
* the name of the type
|
|
6859
6859
|
* @field
|
|
6860
6860
|
*/
|
|
6861
|
-
type_name: string
|
|
6861
|
+
type_name: string
|
|
6862
6862
|
/**
|
|
6863
6863
|
* the size of the class structure
|
|
6864
6864
|
* @field
|
|
@@ -6924,7 +6924,7 @@ interface TypeValueTable {
|
|
|
6924
6924
|
* needs to be used, and for collection of floats `'d'`.
|
|
6925
6925
|
* @field
|
|
6926
6926
|
*/
|
|
6927
|
-
collect_format: string
|
|
6927
|
+
collect_format: string
|
|
6928
6928
|
/**
|
|
6929
6929
|
* Function to initialize a GValue from the values
|
|
6930
6930
|
* collected from variadic arguments
|
|
@@ -6937,7 +6937,7 @@ interface TypeValueTable {
|
|
|
6937
6937
|
* only of `'p'`s to provide lcopy_value() with pointers to storage locations.
|
|
6938
6938
|
* @field
|
|
6939
6939
|
*/
|
|
6940
|
-
lcopy_format: string
|
|
6940
|
+
lcopy_format: string
|
|
6941
6941
|
/**
|
|
6942
6942
|
* Function to store the contents of a value into the
|
|
6943
6943
|
* locations collected from variadic arguments
|