@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/gobject-2.0.d.cts CHANGED
@@ -721,14 +721,14 @@ export function enum_get_value(enum_class: EnumClass, value: number): EnumValue
721
721
  * @param name the name to look up
722
722
  * @returns the #GEnumValue with name @name, or %NULL if the enumeration doesn't have a member with that name
723
723
  */
724
- export function enum_get_value_by_name(enum_class: EnumClass, name: string | null): EnumValue | null
724
+ export function enum_get_value_by_name(enum_class: EnumClass, name: string): EnumValue | null
725
725
  /**
726
726
  * Looks up a #GEnumValue by nickname.
727
727
  * @param enum_class a #GEnumClass
728
728
  * @param nick the nickname to look up
729
729
  * @returns the #GEnumValue with nickname @nick, or %NULL if the enumeration doesn't have a member with that nickname
730
730
  */
731
- export function enum_get_value_by_nick(enum_class: EnumClass, nick: string | null): EnumValue | null
731
+ export function enum_get_value_by_nick(enum_class: EnumClass, nick: string): EnumValue | null
732
732
  /**
733
733
  * Registers a new static enumeration type with the name `name`.
734
734
  *
@@ -739,7 +739,7 @@ export function enum_get_value_by_nick(enum_class: EnumClass, nick: string | nul
739
739
  * @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.
740
740
  * @returns The new type identifier.
741
741
  */
742
- export function enum_register_static(name: string | null, const_static_values: EnumValue): GType
742
+ export function enum_register_static(name: string, const_static_values: EnumValue): GType
743
743
  /**
744
744
  * Pretty-prints `value` in the form of the enum’s name.
745
745
  *
@@ -771,14 +771,14 @@ export function flags_get_first_value(flags_class: FlagsClass, value: number): F
771
771
  * @param name the name to look up
772
772
  * @returns the #GFlagsValue with name @name, or %NULL if there is no flag with that name
773
773
  */
774
- export function flags_get_value_by_name(flags_class: FlagsClass, name: string | null): FlagsValue | null
774
+ export function flags_get_value_by_name(flags_class: FlagsClass, name: string): FlagsValue | null
775
775
  /**
776
776
  * Looks up a #GFlagsValue by nickname.
777
777
  * @param flags_class a #GFlagsClass
778
778
  * @param nick the nickname to look up
779
779
  * @returns the #GFlagsValue with nickname @nick, or %NULL if there is no flag with that nickname
780
780
  */
781
- export function flags_get_value_by_nick(flags_class: FlagsClass, nick: string | null): FlagsValue | null
781
+ export function flags_get_value_by_nick(flags_class: FlagsClass, nick: string): FlagsValue | null
782
782
  /**
783
783
  * Registers a new static flags type with the name `name`.
784
784
  *
@@ -789,7 +789,7 @@ export function flags_get_value_by_nick(flags_class: FlagsClass, nick: string |
789
789
  * @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.
790
790
  * @returns The new type identifier.
791
791
  */
792
- export function flags_register_static(name: string | null, const_static_values: FlagsValue): GType
792
+ export function flags_register_static(name: string, const_static_values: FlagsValue): GType
793
793
  /**
794
794
  * Pretty-prints `value` in the form of the flag names separated by ` | ` and
795
795
  * sorted. Any extra bits will be shown at the end as a hexadecimal number.
@@ -817,7 +817,7 @@ export function gtype_get_type(): GType
817
817
  * @param flags flags for the property specified
818
818
  * @returns a newly created parameter specification
819
819
  */
820
- export function param_spec_boolean(name: string | null, nick: string | null, blurb: string | null, default_value: boolean, flags: ParamFlags): ParamSpec
820
+ export function param_spec_boolean(name: string, nick: string | null, blurb: string | null, default_value: boolean, flags: ParamFlags): ParamSpec
821
821
  /**
822
822
  * Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_BOXED
823
823
  * derived property.
@@ -830,7 +830,7 @@ export function param_spec_boolean(name: string | null, nick: string | null, blu
830
830
  * @param flags flags for the property specified
831
831
  * @returns a newly created parameter specification
832
832
  */
833
- export function param_spec_boxed(name: string | null, nick: string | null, blurb: string | null, boxed_type: GType, flags: ParamFlags): ParamSpec
833
+ export function param_spec_boxed(name: string, nick: string | null, blurb: string | null, boxed_type: GType, flags: ParamFlags): ParamSpec
834
834
  /**
835
835
  * Creates a new #GParamSpecChar instance specifying a %G_TYPE_CHAR property.
836
836
  * @param name canonical name of the property specified
@@ -842,7 +842,7 @@ export function param_spec_boxed(name: string | null, nick: string | null, blurb
842
842
  * @param flags flags for the property specified
843
843
  * @returns a newly created parameter specification
844
844
  */
845
- export function param_spec_char(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
845
+ export function param_spec_char(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
846
846
  /**
847
847
  * Creates a new #GParamSpecDouble instance specifying a %G_TYPE_DOUBLE
848
848
  * property.
@@ -857,7 +857,7 @@ export function param_spec_char(name: string | null, nick: string | null, blurb:
857
857
  * @param flags flags for the property specified
858
858
  * @returns a newly created parameter specification
859
859
  */
860
- export function param_spec_double(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
860
+ export function param_spec_double(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
861
861
  /**
862
862
  * Creates a new #GParamSpecEnum instance specifying a %G_TYPE_ENUM
863
863
  * property.
@@ -871,7 +871,7 @@ export function param_spec_double(name: string | null, nick: string | null, blur
871
871
  * @param flags flags for the property specified
872
872
  * @returns a newly created parameter specification
873
873
  */
874
- export function param_spec_enum(name: string | null, nick: string | null, blurb: string | null, enum_type: GType, default_value: number, flags: ParamFlags): ParamSpec
874
+ export function param_spec_enum(name: string, nick: string | null, blurb: string | null, enum_type: GType, default_value: number, flags: ParamFlags): ParamSpec
875
875
  /**
876
876
  * Creates a new #GParamSpecFlags instance specifying a %G_TYPE_FLAGS
877
877
  * property.
@@ -885,7 +885,7 @@ export function param_spec_enum(name: string | null, nick: string | null, blurb:
885
885
  * @param flags flags for the property specified
886
886
  * @returns a newly created parameter specification
887
887
  */
888
- export function param_spec_flags(name: string | null, nick: string | null, blurb: string | null, flags_type: GType, default_value: number, flags: ParamFlags): ParamSpec
888
+ export function param_spec_flags(name: string, nick: string | null, blurb: string | null, flags_type: GType, default_value: number, flags: ParamFlags): ParamSpec
889
889
  /**
890
890
  * Creates a new #GParamSpecFloat instance specifying a %G_TYPE_FLOAT property.
891
891
  *
@@ -899,7 +899,7 @@ export function param_spec_flags(name: string | null, nick: string | null, blurb
899
899
  * @param flags flags for the property specified
900
900
  * @returns a newly created parameter specification
901
901
  */
902
- export function param_spec_float(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
902
+ export function param_spec_float(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
903
903
  /**
904
904
  * Creates a new #GParamSpecGType instance specifying a
905
905
  * %G_TYPE_GTYPE property.
@@ -912,7 +912,7 @@ export function param_spec_float(name: string | null, nick: string | null, blurb
912
912
  * @param flags flags for the property specified
913
913
  * @returns a newly created parameter specification
914
914
  */
915
- export function param_spec_gtype(name: string | null, nick: string | null, blurb: string | null, is_a_type: GType, flags: ParamFlags): ParamSpec
915
+ export function param_spec_gtype(name: string, nick: string | null, blurb: string | null, is_a_type: GType, flags: ParamFlags): ParamSpec
916
916
  /**
917
917
  * Creates a new #GParamSpecInt instance specifying a %G_TYPE_INT property.
918
918
  *
@@ -926,7 +926,7 @@ export function param_spec_gtype(name: string | null, nick: string | null, blurb
926
926
  * @param flags flags for the property specified
927
927
  * @returns a newly created parameter specification
928
928
  */
929
- export function param_spec_int(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
929
+ export function param_spec_int(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
930
930
  /**
931
931
  * Creates a new #GParamSpecInt64 instance specifying a %G_TYPE_INT64 property.
932
932
  *
@@ -940,7 +940,7 @@ export function param_spec_int(name: string | null, nick: string | null, blurb:
940
940
  * @param flags flags for the property specified
941
941
  * @returns a newly created parameter specification
942
942
  */
943
- export function param_spec_int64(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
943
+ export function param_spec_int64(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
944
944
  /**
945
945
  * Creates a new #GParamSpecLong instance specifying a %G_TYPE_LONG property.
946
946
  *
@@ -954,7 +954,7 @@ export function param_spec_int64(name: string | null, nick: string | null, blurb
954
954
  * @param flags flags for the property specified
955
955
  * @returns a newly created parameter specification
956
956
  */
957
- export function param_spec_long(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
957
+ export function param_spec_long(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
958
958
  /**
959
959
  * Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_OBJECT
960
960
  * derived property.
@@ -967,7 +967,7 @@ export function param_spec_long(name: string | null, nick: string | null, blurb:
967
967
  * @param flags flags for the property specified
968
968
  * @returns a newly created parameter specification
969
969
  */
970
- export function param_spec_object(name: string | null, nick: string | null, blurb: string | null, object_type: GType, flags: ParamFlags): ParamSpec
970
+ export function param_spec_object(name: string, nick: string | null, blurb: string | null, object_type: GType, flags: ParamFlags): ParamSpec
971
971
  /**
972
972
  * Creates a new #GParamSpecParam instance specifying a %G_TYPE_PARAM
973
973
  * property.
@@ -980,7 +980,7 @@ export function param_spec_object(name: string | null, nick: string | null, blur
980
980
  * @param flags flags for the property specified
981
981
  * @returns a newly created parameter specification
982
982
  */
983
- export function param_spec_param(name: string | null, nick: string | null, blurb: string | null, param_type: GType, flags: ParamFlags): ParamSpec
983
+ export function param_spec_param(name: string, nick: string | null, blurb: string | null, param_type: GType, flags: ParamFlags): ParamSpec
984
984
  /**
985
985
  * Creates a new #GParamSpecPointer instance specifying a pointer property.
986
986
  * Where possible, it is better to use g_param_spec_object() or
@@ -993,7 +993,7 @@ export function param_spec_param(name: string | null, nick: string | null, blurb
993
993
  * @param flags flags for the property specified
994
994
  * @returns a newly created parameter specification
995
995
  */
996
- export function param_spec_pointer(name: string | null, nick: string | null, blurb: string | null, flags: ParamFlags): ParamSpec
996
+ export function param_spec_pointer(name: string, nick: string | null, blurb: string | null, flags: ParamFlags): ParamSpec
997
997
  /**
998
998
  * Creates a new #GParamSpecString instance.
999
999
  *
@@ -1005,7 +1005,7 @@ export function param_spec_pointer(name: string | null, nick: string | null, blu
1005
1005
  * @param flags flags for the property specified
1006
1006
  * @returns a newly created parameter specification
1007
1007
  */
1008
- export function param_spec_string(name: string | null, nick: string | null, blurb: string | null, default_value: string | null, flags: ParamFlags): ParamSpec
1008
+ export function param_spec_string(name: string, nick: string | null, blurb: string | null, default_value: string | null, flags: ParamFlags): ParamSpec
1009
1009
  /**
1010
1010
  * Creates a new #GParamSpecUChar instance specifying a %G_TYPE_UCHAR property.
1011
1011
  * @param name canonical name of the property specified
@@ -1017,7 +1017,7 @@ export function param_spec_string(name: string | null, nick: string | null, blur
1017
1017
  * @param flags flags for the property specified
1018
1018
  * @returns a newly created parameter specification
1019
1019
  */
1020
- export function param_spec_uchar(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1020
+ export function param_spec_uchar(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1021
1021
  /**
1022
1022
  * Creates a new #GParamSpecUInt instance specifying a %G_TYPE_UINT property.
1023
1023
  *
@@ -1031,7 +1031,7 @@ export function param_spec_uchar(name: string | null, nick: string | null, blurb
1031
1031
  * @param flags flags for the property specified
1032
1032
  * @returns a newly created parameter specification
1033
1033
  */
1034
- export function param_spec_uint(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1034
+ export function param_spec_uint(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1035
1035
  /**
1036
1036
  * Creates a new #GParamSpecUInt64 instance specifying a %G_TYPE_UINT64
1037
1037
  * property.
@@ -1046,7 +1046,7 @@ export function param_spec_uint(name: string | null, nick: string | null, blurb:
1046
1046
  * @param flags flags for the property specified
1047
1047
  * @returns a newly created parameter specification
1048
1048
  */
1049
- export function param_spec_uint64(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1049
+ export function param_spec_uint64(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1050
1050
  /**
1051
1051
  * Creates a new #GParamSpecULong instance specifying a %G_TYPE_ULONG
1052
1052
  * property.
@@ -1061,7 +1061,7 @@ export function param_spec_uint64(name: string | null, nick: string | null, blur
1061
1061
  * @param flags flags for the property specified
1062
1062
  * @returns a newly created parameter specification
1063
1063
  */
1064
- export function param_spec_ulong(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1064
+ export function param_spec_ulong(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1065
1065
  /**
1066
1066
  * Creates a new #GParamSpecUnichar instance specifying a %G_TYPE_UINT
1067
1067
  * property. #GValue structures for this property can be accessed with
@@ -1075,7 +1075,7 @@ export function param_spec_ulong(name: string | null, nick: string | null, blurb
1075
1075
  * @param flags flags for the property specified
1076
1076
  * @returns a newly created parameter specification
1077
1077
  */
1078
- export function param_spec_unichar(name: string | null, nick: string | null, blurb: string | null, default_value: string, flags: ParamFlags): ParamSpec
1078
+ export function param_spec_unichar(name: string, nick: string | null, blurb: string | null, default_value: string, flags: ParamFlags): ParamSpec
1079
1079
  /**
1080
1080
  * Creates a new #GParamSpecVariant instance specifying a #GVariant
1081
1081
  * property.
@@ -1091,7 +1091,7 @@ export function param_spec_unichar(name: string | null, nick: string | null, blu
1091
1091
  * @param flags flags for the property specified
1092
1092
  * @returns the newly created #GParamSpec
1093
1093
  */
1094
- export function param_spec_variant(name: string | null, nick: string | null, blurb: string | null, type: GLib.VariantType, default_value: GLib.Variant | null, flags: ParamFlags): ParamSpec
1094
+ export function param_spec_variant(name: string, nick: string | null, blurb: string | null, type: GLib.VariantType, default_value: GLib.Variant | null, flags: ParamFlags): ParamSpec
1095
1095
  /**
1096
1096
  * Registers `name` as the name of a new static type derived
1097
1097
  * from %G_TYPE_PARAM.
@@ -1103,7 +1103,7 @@ export function param_spec_variant(name: string | null, nick: string | null, blu
1103
1103
  * @param pspec_info The #GParamSpecTypeInfo for this #GParamSpec type.
1104
1104
  * @returns The new type identifier.
1105
1105
  */
1106
- export function param_type_register_static(name: string | null, pspec_info: ParamSpecTypeInfo): GType
1106
+ export function param_type_register_static(name: string, pspec_info: ParamSpecTypeInfo): GType
1107
1107
  /**
1108
1108
  * Transforms `src_value` into `dest_value` if possible, and then
1109
1109
  * validates `dest_value,` in order for it to conform to `pspec`. If
@@ -1168,7 +1168,7 @@ export function param_values_cmp(pspec: ParamSpec, value1: any, value2: any): nu
1168
1168
  * @param name the name of the new pointer type.
1169
1169
  * @returns a new %G_TYPE_POINTER derived type id for @name.
1170
1170
  */
1171
- export function pointer_type_register_static(name: string | null): GType
1171
+ export function pointer_type_register_static(name: string): GType
1172
1172
  /**
1173
1173
  * A predefined #GSignalAccumulator for signals intended to be used as a
1174
1174
  * hook for application code to provide a particular value. Usually
@@ -1231,7 +1231,7 @@ export function signal_chain_from_overridden(instance_and_params: any[], return_
1231
1231
  * @param after whether the handler should be called before or after the default handler of the signal.
1232
1232
  * @returns the handler ID (always greater than 0 for successful connections)
1233
1233
  */
1234
- export function signal_connect_closure(instance: Object, detailed_signal: string | null, closure: TClosure, after: boolean): number
1234
+ export function signal_connect_closure(instance: Object, detailed_signal: string, closure: TClosure, after: boolean): number
1235
1235
  /**
1236
1236
  * Connects a closure to a signal for a particular object.
1237
1237
  *
@@ -1440,7 +1440,7 @@ export function signal_has_handler_pending(instance: Object, signal_id: number,
1440
1440
  * @param name the canonical name of the signal
1441
1441
  * @returns %TRUE if @name is a valid signal name, %FALSE otherwise.
1442
1442
  */
1443
- export function signal_is_valid_name(name: string | null): boolean
1443
+ export function signal_is_valid_name(name: string): boolean
1444
1444
  /**
1445
1445
  * Lists the signals by id that a certain instance or interface type
1446
1446
  * created. Further information about the signals can be acquired through
@@ -1465,7 +1465,7 @@ export function signal_list_ids(itype: GType): number[]
1465
1465
  * @param itype the type that the signal operates on.
1466
1466
  * @returns the signal's identifying number, or 0 if no signal was found.
1467
1467
  */
1468
- export function signal_lookup(name: string | null, itype: GType): number
1468
+ export function signal_lookup(name: string, itype: GType): number
1469
1469
  /**
1470
1470
  * Given the signal's identifier, finds its name.
1471
1471
  *
@@ -1495,7 +1495,7 @@ export function signal_override_class_closure(signal_id: number, instance_type:
1495
1495
  * @param force_detail_quark %TRUE forces creation of a #GQuark for the detail.
1496
1496
  * @returns Whether the signal name could successfully be parsed and @signal_id_p and @detail_p contain valid return values.
1497
1497
  */
1498
- export function signal_parse_name(detailed_signal: string | null, itype: GType, force_detail_quark: boolean): [ /* returnType */ boolean, /* signal_id_p */ number, /* detail_p */ GLib.Quark ]
1498
+ export function signal_parse_name(detailed_signal: string, itype: GType, force_detail_quark: boolean): [ /* returnType */ boolean, /* signal_id_p */ number, /* detail_p */ GLib.Quark ]
1499
1499
  /**
1500
1500
  * Queries the signal system for in-depth information about a
1501
1501
  * specific signal. This function will fill in a user-provided
@@ -1543,7 +1543,7 @@ export function signal_stop_emission(instance: Object, signal_id: number, detail
1543
1543
  * @param instance the object whose signal handlers you wish to stop.
1544
1544
  * @param detailed_signal a string of the form "signal-name::detail".
1545
1545
  */
1546
- export function signal_stop_emission_by_name(instance: Object, detailed_signal: string | null): void
1546
+ export function signal_stop_emission_by_name(instance: Object, detailed_signal: string): void
1547
1547
  /**
1548
1548
  * Creates a new closure which invokes the function found at the offset
1549
1549
  * `struct_offset` in the class structure of the interface or classed type
@@ -1737,7 +1737,7 @@ export function type_free_instance(instance: TypeInstance): void
1737
1737
  * @param name type name to look up
1738
1738
  * @returns corresponding type ID or 0
1739
1739
  */
1740
- export function type_from_name(name: string | null): GType
1740
+ export function type_from_name(name: string): GType
1741
1741
  /**
1742
1742
  * Internal function, used to extract the fundamental type ID portion.
1743
1743
  * Use G_TYPE_FUNDAMENTAL() instead.
@@ -1876,8 +1876,8 @@ export function type_is_a(type: GType, is_a_type: GType): boolean
1876
1876
  * @returns static type name or %NULL
1877
1877
  */
1878
1878
  export function type_name(type: GType): string | null
1879
- export function type_name_from_class(g_class: TypeClass): string | null
1880
- export function type_name_from_instance(instance: TypeInstance): string | null
1879
+ export function type_name_from_class(g_class: TypeClass): string
1880
+ export function type_name_from_instance(instance: TypeInstance): string
1881
1881
  /**
1882
1882
  * Given a `leaf_type` and a `root_type` which is contained in its
1883
1883
  * ancestry, return the type that `root_type` is the immediate parent
@@ -1926,7 +1926,7 @@ export function type_query(type: GType): /* query */ TypeQuery
1926
1926
  * @param flags bitwise combination of #GTypeFlags values
1927
1927
  * @returns the new type identifier or %G_TYPE_INVALID if registration failed
1928
1928
  */
1929
- export function type_register_dynamic(parent_type: GType, type_name: string | null, plugin: TypePlugin, flags: TypeFlags): GType
1929
+ export function type_register_dynamic(parent_type: GType, type_name: string, plugin: TypePlugin, flags: TypeFlags): GType
1930
1930
  /**
1931
1931
  * Registers `type_id` as the predefined identifier and `type_name` as the
1932
1932
  * name of a fundamental type. If `type_id` is already registered, or a
@@ -1942,7 +1942,7 @@ export function type_register_dynamic(parent_type: GType, type_name: string | nu
1942
1942
  * @param flags bitwise combination of #GTypeFlags values
1943
1943
  * @returns the predefined type identifier
1944
1944
  */
1945
- export function type_register_fundamental(type_id: GType, type_name: string | null, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags): GType
1945
+ export function type_register_fundamental(type_id: GType, type_name: string, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags): GType
1946
1946
  /**
1947
1947
  * Registers `type_name` as the name of a new static type derived from
1948
1948
  * `parent_type`. The type system uses the information contained in the
@@ -1955,7 +1955,7 @@ export function type_register_fundamental(type_id: GType, type_name: string | nu
1955
1955
  * @param flags bitwise combination of #GTypeFlags values
1956
1956
  * @returns the new type identifier
1957
1957
  */
1958
- export function type_register_static(parent_type: GType, type_name: string | null, info: TypeInfo, flags: TypeFlags): GType
1958
+ export function type_register_static(parent_type: GType, type_name: string, info: TypeInfo, flags: TypeFlags): GType
1959
1959
  /**
1960
1960
  * Attaches arbitrary data to a type.
1961
1961
  * @param type a #GType
@@ -3038,7 +3038,7 @@ export module Binding {
3038
3038
  * This should be in [canonical form][canonical-parameter-names] to get the
3039
3039
  * best performance.
3040
3040
  */
3041
- source_property?: string | null
3041
+ sourceProperty?: string | null
3042
3042
  /**
3043
3043
  * The #GObject that should be used as the target of the binding
3044
3044
  */
@@ -3050,7 +3050,7 @@ export module Binding {
3050
3050
  * This should be in [canonical form][canonical-parameter-names] to get the
3051
3051
  * best performance.
3052
3052
  */
3053
- target_property?: string | null
3053
+ targetProperty?: string | null
3054
3054
  }
3055
3055
 
3056
3056
  }
@@ -3074,7 +3074,7 @@ export interface Binding {
3074
3074
  * This should be in [canonical form][canonical-parameter-names] to get the
3075
3075
  * best performance.
3076
3076
  */
3077
- readonly source_property: string | null
3077
+ readonly sourceProperty: string | null
3078
3078
  /**
3079
3079
  * The #GObject that should be used as the target of the binding
3080
3080
  */
@@ -3086,7 +3086,7 @@ export interface Binding {
3086
3086
  * This should be in [canonical form][canonical-parameter-names] to get the
3087
3087
  * best performance.
3088
3088
  */
3089
- readonly target_property: string | null
3089
+ readonly targetProperty: string | null
3090
3090
 
3091
3091
  // Owm methods of GObject-2.0.GObject.Binding
3092
3092
 
@@ -3131,7 +3131,7 @@ export interface Binding {
3131
3131
  * of the binding.
3132
3132
  * @returns the name of the source property
3133
3133
  */
3134
- get_source_property(): string | null
3134
+ get_source_property(): string
3135
3135
  /**
3136
3136
  * Retrieves the #GObject instance used as the target of the binding.
3137
3137
  *
@@ -3150,7 +3150,7 @@ export interface Binding {
3150
3150
  * of the binding.
3151
3151
  * @returns the name of the target property
3152
3152
  */
3153
- get_target_property(): string | null
3153
+ get_target_property(): string
3154
3154
  /**
3155
3155
  * Explicitly releases the binding between the source and the target
3156
3156
  * property expressed by `binding`.
@@ -3330,7 +3330,7 @@ export interface BindingGroup {
3330
3330
  * @param target_property the property on `target` to bind
3331
3331
  * @param flags the flags used to create the #GBinding
3332
3332
  */
3333
- bind(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags): void
3333
+ bind(source_property: string, target: Object, target_property: string, flags: BindingFlags): void
3334
3334
  /**
3335
3335
  * Creates a binding between `source_property` on the source object and
3336
3336
  * `target_property` on `target,` allowing you to set the transformation
@@ -3349,7 +3349,7 @@ export interface BindingGroup {
3349
3349
  * @param transform_to a #GClosure wrapping the transformation function from the source object to the `target,` or %NULL to use the default
3350
3350
  * @param transform_from a #GClosure wrapping the transformation function from the `target` to the source object, or %NULL to use the default
3351
3351
  */
3352
- bind_full(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags, transform_to: TClosure | null, transform_from: TClosure | null): void
3352
+ bind_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: TClosure | null, transform_from: TClosure | null): void
3353
3353
  /**
3354
3354
  * Gets the source object used for binding properties.
3355
3355
  * @returns a #GObject or %NULL.
@@ -3521,7 +3521,7 @@ export interface Object {
3521
3521
  * @param flags flags to pass to #GBinding
3522
3522
  * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
3523
3523
  */
3524
- bind_property(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags): Binding
3524
+ bind_property(source_property: string, target: Object, target_property: string, flags: BindingFlags): Binding
3525
3525
  /**
3526
3526
  * Creates a binding between `source_property` on `source` and `target_property`
3527
3527
  * on `target,` allowing you to set the transformation functions to be used by
@@ -3538,7 +3538,7 @@ export interface Object {
3538
3538
  * @param transform_from a #GClosure wrapping the transformation function from the `target` to the `source,` or %NULL to use the default
3539
3539
  * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
3540
3540
  */
3541
- bind_property_full(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags, transform_to: TClosure, transform_from: TClosure): Binding
3541
+ bind_property_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: TClosure, transform_from: TClosure): Binding
3542
3542
  /**
3543
3543
  * This function is intended for #GObject implementations to re-enforce
3544
3544
  * a [floating][floating-ref] object reference. Doing this is seldom
@@ -3563,7 +3563,7 @@ export interface Object {
3563
3563
  * @param key name of the key for that association
3564
3564
  * @returns the data if found, or %NULL if no such data exists.
3565
3565
  */
3566
- get_data(key: string | null): any | null
3566
+ get_data(key: string): any | null
3567
3567
  /**
3568
3568
  * Gets a property of an object.
3569
3569
  *
@@ -3584,7 +3584,7 @@ export interface Object {
3584
3584
  * @param property_name the name of the property to get
3585
3585
  * @param value return location for the property value
3586
3586
  */
3587
- get_property(property_name: string | null, value: any): void
3587
+ get_property(property_name: string, value: any): void
3588
3588
  /**
3589
3589
  * This function gets back user data pointers stored via
3590
3590
  * g_object_set_qdata().
@@ -3619,7 +3619,7 @@ export interface Object {
3619
3619
  * called.
3620
3620
  * @param property_name the name of a property installed on the class of `object`.
3621
3621
  */
3622
- notify(property_name: string | null): void
3622
+ notify(property_name: string): void
3623
3623
  /**
3624
3624
  * Emits a "notify" signal for the property specified by `pspec` on `object`.
3625
3625
  *
@@ -3711,20 +3711,20 @@ export interface Object {
3711
3711
  * @param key name of the key
3712
3712
  * @param data data to associate with that key
3713
3713
  */
3714
- set_data(key: string | null, data: any | null): void
3714
+ set_data(key: string, data: any | null): void
3715
3715
  /**
3716
3716
  * Sets a property on an object.
3717
3717
  * @param property_name the name of the property to set
3718
3718
  * @param value the value
3719
3719
  */
3720
- set_property(property_name: string | null, value: any): void
3720
+ set_property(property_name: string, value: any): void
3721
3721
  /**
3722
3722
  * Remove a specified datum from the object's data associations,
3723
3723
  * without invoking the association's destroy handler.
3724
3724
  * @param key name of the key
3725
3725
  * @returns the data if found, or %NULL if no such data exists.
3726
3726
  */
3727
- steal_data(key: string | null): any | null
3727
+ steal_data(key: string): any | null
3728
3728
  /**
3729
3729
  * This function gets back user data pointers stored via
3730
3730
  * g_object_set_qdata() and removes the `data` from object
@@ -3889,7 +3889,7 @@ export class Object {
3889
3889
  * @param property_name name of a property to look up.
3890
3890
  * @returns the #GParamSpec for the property of the interface with the name @property_name, or %NULL if no such property exists.
3891
3891
  */
3892
- static interface_find_property(g_iface: TypeInterface, property_name: string | null): ParamSpec
3892
+ static interface_find_property(g_iface: TypeInterface, property_name: string): ParamSpec
3893
3893
  /**
3894
3894
  * Add a property to an interface; this is only useful for interfaces
3895
3895
  * that are added to GObject-derived types. Adding a property to an
@@ -3935,7 +3935,7 @@ export interface ParamSpec {
3935
3935
  * name of this parameter: always an interned string
3936
3936
  * @field
3937
3937
  */
3938
- name: string | null
3938
+ name: string
3939
3939
  /**
3940
3940
  * #GParamFlags flags for this parameter
3941
3941
  * @field
@@ -3973,7 +3973,7 @@ export interface ParamSpec {
3973
3973
  * This allows for pointer-value comparisons.
3974
3974
  * @returns the name of @pspec.
3975
3975
  */
3976
- get_name(): string | null
3976
+ get_name(): string
3977
3977
  /**
3978
3978
  * Gets the GQuark for the name.
3979
3979
  * @returns the GQuark for @pspec->name.
@@ -3983,7 +3983,7 @@ export interface ParamSpec {
3983
3983
  * Get the nickname of a #GParamSpec.
3984
3984
  * @returns the nickname of @pspec.
3985
3985
  */
3986
- get_nick(): string | null
3986
+ get_nick(): string
3987
3987
  /**
3988
3988
  * Gets back user data pointers stored via g_param_spec_set_qdata().
3989
3989
  * @param quark a #GQuark, naming the user data pointer
@@ -4075,7 +4075,7 @@ export class ParamSpec {
4075
4075
  * @param name the canonical name of the property
4076
4076
  * @returns %TRUE if @name is a valid property name, %FALSE otherwise.
4077
4077
  */
4078
- static is_valid_name(name: string | null): boolean
4078
+ static is_valid_name(name: string): boolean
4079
4079
  static char(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecChar
4080
4080
  static uchar(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecUChar
4081
4081
  static int(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecInt
@@ -4894,7 +4894,7 @@ export module SignalGroup {
4894
4894
  /**
4895
4895
  * The #GType of the target property.
4896
4896
  */
4897
- target_type?: GType | null
4897
+ targetType?: GType | null
4898
4898
  }
4899
4899
 
4900
4900
  }
@@ -4910,7 +4910,7 @@ export interface SignalGroup {
4910
4910
  /**
4911
4911
  * The #GType of the target property.
4912
4912
  */
4913
- readonly target_type: GType
4913
+ readonly targetType: GType
4914
4914
 
4915
4915
  // Owm methods of GObject-2.0.GObject.SignalGroup
4916
4916
 
@@ -4930,7 +4930,7 @@ export interface SignalGroup {
4930
4930
  * @param closure the closure to connect.
4931
4931
  * @param after whether the handler should be called before or after the default handler of the signal.
4932
4932
  */
4933
- connect_closure(detailed_signal: string | null, closure: TClosure, after: boolean): void
4933
+ connect_closure(detailed_signal: string, closure: TClosure, after: boolean): void
4934
4934
  /**
4935
4935
  * Connects `c_handler` to the signal `detailed_signal`
4936
4936
  * on the target instance of `self`.
@@ -4940,7 +4940,7 @@ export interface SignalGroup {
4940
4940
  * @param c_handler the #GCallback to connect
4941
4941
  * @param flags the flags used to create the signal connection
4942
4942
  */
4943
- connect_data(detailed_signal: string | null, c_handler: Callback, flags: ConnectFlags): void
4943
+ connect_data(detailed_signal: string, c_handler: Callback, flags: ConnectFlags): void
4944
4944
  /**
4945
4945
  * Connects `c_handler` to the signal `detailed_signal`
4946
4946
  * on the target instance of `self`.
@@ -4952,7 +4952,7 @@ export interface SignalGroup {
4952
4952
  * @param detailed_signal a string of the form "signal-name::detail"
4953
4953
  * @param c_handler the #GCallback to connect
4954
4954
  */
4955
- connect_swapped(detailed_signal: string | null, c_handler: Callback): void
4955
+ connect_swapped(detailed_signal: string, c_handler: Callback): void
4956
4956
  /**
4957
4957
  * Gets the target instance used when connecting signals.
4958
4958
  * @returns The target instance
@@ -5102,7 +5102,7 @@ export interface TypeModule extends TypePlugin {
5102
5102
  * @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.
5103
5103
  * @returns the new or existing type ID
5104
5104
  */
5105
- register_enum(name: string | null, const_static_values: EnumValue): GType
5105
+ register_enum(name: string, const_static_values: EnumValue): GType
5106
5106
  /**
5107
5107
  * Looks up or registers a flags type that is implemented with a particular
5108
5108
  * type plugin. If a type with name `type_name` was previously registered,
@@ -5118,7 +5118,7 @@ export interface TypeModule extends TypePlugin {
5118
5118
  * @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.
5119
5119
  * @returns the new or existing type ID
5120
5120
  */
5121
- register_flags(name: string | null, const_static_values: FlagsValue): GType
5121
+ register_flags(name: string, const_static_values: FlagsValue): GType
5122
5122
  /**
5123
5123
  * Looks up or registers a type that is implemented with a particular
5124
5124
  * type plugin. If a type with name `type_name` was previously registered,
@@ -5140,12 +5140,12 @@ export interface TypeModule extends TypePlugin {
5140
5140
  * @param flags flags field providing details about the type
5141
5141
  * @returns the new or existing type ID
5142
5142
  */
5143
- register_type(parent_type: GType, type_name: string | null, type_info: TypeInfo, flags: TypeFlags): GType
5143
+ register_type(parent_type: GType, type_name: string, type_info: TypeInfo, flags: TypeFlags): GType
5144
5144
  /**
5145
5145
  * Sets the name for a #GTypeModule
5146
5146
  * @param name a human-readable name to use in error messages.
5147
5147
  */
5148
- set_name(name: string | null): void
5148
+ set_name(name: string): void
5149
5149
  /**
5150
5150
  * Decreases the use count of a #GTypeModule by one. If the
5151
5151
  * result is zero, the module will be unloaded. (However, the
@@ -5822,12 +5822,12 @@ export interface EnumValue {
5822
5822
  * the name of the value
5823
5823
  * @field
5824
5824
  */
5825
- value_name: string | null
5825
+ value_name: string
5826
5826
  /**
5827
5827
  * the nickname of the value
5828
5828
  * @field
5829
5829
  */
5830
- value_nick: string | null
5830
+ value_nick: string
5831
5831
  }
5832
5832
 
5833
5833
  /**
@@ -5894,12 +5894,12 @@ export interface FlagsValue {
5894
5894
  * the name of the value
5895
5895
  * @field
5896
5896
  */
5897
- value_name: string | null
5897
+ value_name: string
5898
5898
  /**
5899
5899
  * the nickname of the value
5900
5900
  * @field
5901
5901
  */
5902
- value_nick: string | null
5902
+ value_nick: string
5903
5903
  }
5904
5904
 
5905
5905
  /**
@@ -6000,7 +6000,7 @@ export interface ObjectClass {
6000
6000
  * @param property_name the name of the property to look up
6001
6001
  * @returns the #GParamSpec for the property, or %NULL if the class doesn't have a property of that name
6002
6002
  */
6003
- find_property(oclass: Object | Function | GType, property_name: string | null): ParamSpec
6003
+ find_property(oclass: Object | Function | GType, property_name: string): ParamSpec
6004
6004
  /**
6005
6005
  * Installs new properties from an array of #GParamSpecs.
6006
6006
  *
@@ -6112,7 +6112,7 @@ export interface ObjectClass {
6112
6112
  * @param property_id the new property ID
6113
6113
  * @param name the name of a property registered in a parent class or in an interface of this class.
6114
6114
  */
6115
- override_property(oclass: Object | Function | GType, property_id: number, name: string | null): void
6115
+ override_property(oclass: Object | Function | GType, property_id: number, name: string): void
6116
6116
  }
6117
6117
 
6118
6118
  /**
@@ -6246,7 +6246,7 @@ export interface ParamSpecPool {
6246
6246
  * @param walk_ancestors If %TRUE, also try to find a #GParamSpec with `param_name` owned by an ancestor of `owner_type`.
6247
6247
  * @returns The found #GParamSpec, or %NULL if no matching #GParamSpec was found.
6248
6248
  */
6249
- lookup(param_name: string | null, owner_type: GType, walk_ancestors: boolean): ParamSpec | null
6249
+ lookup(param_name: string, owner_type: GType, walk_ancestors: boolean): ParamSpec | null
6250
6250
  /**
6251
6251
  * Removes a #GParamSpec from the pool.
6252
6252
  * @param pspec the #GParamSpec to remove
@@ -6321,7 +6321,7 @@ export interface Parameter {
6321
6321
  * the parameter name
6322
6322
  * @field
6323
6323
  */
6324
- name: string | null
6324
+ name: string
6325
6325
  /**
6326
6326
  * the parameter value
6327
6327
  * @field
@@ -6392,7 +6392,7 @@ export interface SignalQuery {
6392
6392
  * The signal name.
6393
6393
  * @field
6394
6394
  */
6395
- signal_name: string | null
6395
+ signal_name: string
6396
6396
  /**
6397
6397
  * The interface/instance type that this signal can be emitted for.
6398
6398
  * @field
@@ -6856,7 +6856,7 @@ export interface TypeQuery {
6856
6856
  * the name of the type
6857
6857
  * @field
6858
6858
  */
6859
- type_name: string | null
6859
+ type_name: string
6860
6860
  /**
6861
6861
  * the size of the class structure
6862
6862
  * @field
@@ -6922,7 +6922,7 @@ export interface TypeValueTable {
6922
6922
  * needs to be used, and for collection of floats `'d'`.
6923
6923
  * @field
6924
6924
  */
6925
- collect_format: string | null
6925
+ collect_format: string
6926
6926
  /**
6927
6927
  * Function to initialize a GValue from the values
6928
6928
  * collected from variadic arguments
@@ -6935,7 +6935,7 @@ export interface TypeValueTable {
6935
6935
  * only of `'p'`s to provide lcopy_value() with pointers to storage locations.
6936
6936
  * @field
6937
6937
  */
6938
- lcopy_format: string | null
6938
+ lcopy_format: string
6939
6939
  /**
6940
6940
  * Function to store the contents of a value into the
6941
6941
  * locations collected from variadic arguments