ParamSpec
#GParamSpec is an object structure that encapsulates the metadata required to specify parameters, such as e.g. #GObject properties.
Parameter names # {#canonical-parameter-names}
A property name consists of one or more segments consisting of ASCII letters and digits, separated by either the -
or _
character. The first character of a property name must be a letter. These are the same rules as for signal naming (see g_signal_new()).
When creating and looking up a #GParamSpec, either separator can be used, but they cannot be mixed. Using -
is considerably more efficient, and is the ‘canonical form’. Using _
is discouraged.
Skipped during bindings generation
method
get_qdata
: Return type gpointer is unsupportedparameter
data
: gpointermethod
steal_qdata
: Return type gpointer is unsupported
Inheritors
Constructors
Properties
Functions
Gets the default value of @pspec as a pointer to a #GValue.
Gets the GQuark for the name.
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 #GParamSpecOverride. See g_object_class_override_property() for an example of the use of this capability.
The initial reference count of a newly created #GParamSpec 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).