AbstractSignalconnectSignalconnect_SignalemitGets the default value of pspec as a pointer to a GObject.Value.
The GObject.Value will remain valid for the life of pspec.
a pointer to a GObject.Value which must not be modified
Get the name of a GObject.ParamSpec.
The name is always an "interned" string (as per g_intern_string()).
This allows for pointer-value comparisons.
the name of pspec.
Gets the GQuark for the name.
the GQuark for pspec->name.
Gets back user data pointers stored via g_param_spec_set_qdata().
a GLib.Quark, naming the user data pointer
the user data pointer set, or null
If the paramspec redirects operations to another paramspec,
returns that paramspec. Redirect is used typically for
providing a new implementation of a property in a derived
type while preserving all the properties from the parent
type. Redirection is established by creating a property
of type GObject.ParamSpecOverride. See g_object_class_override_property()
for an example of the use of this capability.
paramspec to which requests on this paramspec should be redirected, or null if none.
Sets an opaque, named pointer on a GObject.ParamSpec. The name is
specified through a GLib.Quark (retrieved e.g. via
g_quark_from_static_string()), and the pointer can be gotten back
from the pspec with g_param_spec_get_qdata(). Setting a
previously set user data pointer, overrides (frees) the old pointer
set, using null as pointer essentially removes the data stored.
a GLib.Quark, naming the user data pointer
Optionaldata: anyan opaque user data pointer
The initial reference count of a newly created GObject.ParamSpec is 1,
even though no one has explicitly called g_param_spec_ref() on it
yet. So the initial reference count is flagged as "floating", until
someone calls g_param_spec_ref (pspec); g_param_spec_sink (pspec); in sequence on it, taking over the initial
reference count (thus ending up with a pspec that has a reference
count of 1 still, but is not flagged "floating" anymore).
Gets back user data pointers stored via g_param_spec_set_qdata()
and removes the data from pspec without invoking its destroy()
function (if any was set). Usually, calling this function is only
required to update user data pointers with a destroy notifier.
a GLib.Quark, naming the user data pointer
the user data pointer set, or null
Virtualvfunc_The instance finalization function (optional), should chain up to the finalize method of the parent class.
Virtualvfunc_Checks if contents of value comply with the specifications
set out by this type, without modifying the value. This vfunc is optional.
If it isn't set, GObject will use value_validate. Since 2.74
Virtualvfunc_Resets a value to the default value for this type
(recommended, the default is g_value_reset()), see
g_param_value_set_default().
Virtualvfunc_Ensures that the contents of value comply with the
specifications set out by this type (optional), see
g_param_value_validate().
Virtualvfunc_Compares value1 with value2 according to this type
(recommended, the default is memcmp()), see g_param_values_cmp().
StaticbooleanCreates a new GParamSpecBoolean instance specifying a G_TYPE_BOOLEAN property. In many cases, it may be more appropriate to use an enum with g_param_spec_enum(), both to improve code clarity by using explicitly named values, and to allow for more values to be added in future without breaking API.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
OptionaldefaultValue: booleanThe default value for this property (optional)
StaticboxedCreates a new GParamSpecBoxed instance specifying a G_TYPE_BOXED derived property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The GType for this property
StaticcharCreates a new GParamSpecChar instance specifying a G_TYPE_CHAR property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
StaticdoubleCreates a new GParamSpecDouble instance specifying a G_TYPE_DOUBLE property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
StaticenumCreates a new GParamSpecEnum instance specifying a G_TYPE_ENUM property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The GType for this property
OptionaldefaultValue: anyThe default value for this property (optional)
StaticfloatCreates a new GParamSpecFloat instance specifying a G_TYPE_FLOAT property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
StaticintCreates a new GParamSpecInt instance specifying a G_TYPE_INT property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
Staticint64Creates a new GParamSpecInt64 instance specifying a G_TYPE_INT64 property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
Staticis_Validate a property name for a GObject.ParamSpec. This can be useful for dynamically-generated properties which need to be validated at run-time before actually trying to create them.
See [canonical parameter names][class@GObject.ParamSpec#parameter-names] for details of the rules for valid names.
the canonical name of the property
StaticjsobjectCreates a new ParamSpec instance for JavaScript object properties.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
StaticlongCreates a new GParamSpecLong instance specifying a G_TYPE_LONG property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
StaticobjectCreates a new GParamSpecObject instance specifying a property holding object references.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
OptionalobjectType: GType<T> | { $gtype: GType<T> }The GType of the object (optional)
StaticparamCreates a new GParamSpecParam instance specifying a G_TYPE_PARAM property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The GType for this property
StaticstringCreates a new GParamSpecString instance specifying a G_TYPE_STRING property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
OptionaldefaultValue: stringThe default value for this property (optional, defaults to null if not provided)
StaticucharCreates a new GParamSpecUChar instance specifying a G_TYPE_UCHAR property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
StaticuintCreates a new GParamSpecUInt instance specifying a G_TYPE_UINT property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
Staticuint64Creates a new GParamSpecUInt64 instance specifying a G_TYPE_UINT64 property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
StaticulongCreates a new GParamSpecULong instance specifying a G_TYPE_ULONG property.
The name of the property
A human readable name for the property (can be null)
A longer description of the property (can be null)
The flags for this property (e.g. READABLE, WRITABLE)
The minimum value for this property
The maximum value for this property
OptionaldefaultValue: numberThe default value for this property (optional)
A GObject parameter specification that defines property characteristics. See https://gjs.guide/guides/gobject/basics.html#properties for more details.