2000-09-06 06:32:45 +02:00
<!-- ##### SECTION Title ##### -->
2001-11-14 02:08:19 +01:00
GParamSpec
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### SECTION Short_Description ##### -->
2002-11-23 23:57:35 +01:00
Metadata for parameter specifications
2000-09-06 06:32:45 +02:00
<!-- ##### SECTION Long_Description ##### -->
<para>
2002-11-23 23:57:35 +01:00
#GParamSpec is an object structure that encapsulates the metadata
2001-11-13 19:49:56 +01:00
required to specify parameters, such as e.g. #GObject properties.
2000-09-06 06:32:45 +02:00
</para>
2006-12-17 20:59:02 +01:00
<para id="canonical-parameter-name">
2005-03-08 05:43:00 +01:00
Parameter names need to start with a letter (a-z or A-Z). Subsequent
characters can be letters, numbers or a '-'.
All other characters are replaced by a '-' during construction.
2006-12-17 20:59:02 +01:00
The result of this replacement is called the canonical name of the
parameter.
2005-03-08 05:43:00 +01:00
</para>
2000-09-06 06:32:45 +02:00
<!-- ##### SECTION See_Also ##### -->
<para>
2001-11-13 19:49:56 +01:00
g_object_class_install_property(), g_object_set(), g_object_get(),
2001-11-14 02:08:19 +01:00
g_object_set_property(), g_object_get_property(), g_value_register_transform_func()
2000-09-06 06:32:45 +02:00
</para>
2005-05-05 16:57:29 +02:00
<!-- ##### SECTION Stability_Level ##### -->
2001-11-13 19:49:56 +01:00
<!-- ##### MACRO G_TYPE_IS_PARAM ##### -->
2000-09-06 06:32:45 +02:00
<para>
2001-11-14 02:08:19 +01:00
Returns whether @type "is a" %G_TYPE_PARAM.
2000-09-06 06:32:45 +02:00
</para>
2001-11-14 02:08:19 +01:00
@type: a #GType ID
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### MACRO G_PARAM_SPEC ##### -->
<para>
2003-10-16 01:03:20 +02:00
Casts a derived #GParamSpec object (e.g. of type #GParamSpecInt) into
2001-11-13 19:49:56 +01:00
a #GParamSpec object.
2000-09-06 06:32:45 +02:00
</para>
2001-11-13 19:49:56 +01:00
@pspec: a valid #GParamSpec
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### MACRO G_IS_PARAM_SPEC ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Checks whether @pspec "is a" valid #GParamSpec structure of type %G_TYPE_PARAM
2001-11-14 02:08:19 +01:00
or derived.
</para>
@pspec: a #GParamSpec
2000-09-06 06:32:45 +02:00
2001-11-14 02:08:19 +01:00
<!-- ##### MACRO G_PARAM_SPEC_CLASS ##### -->
<para>
2003-10-16 01:03:20 +02:00
Casts a derived #GParamSpecClass structure into a #GParamSpecClass structure.
2000-09-06 06:32:45 +02:00
</para>
2001-11-14 02:08:19 +01:00
@pclass: a valid #GParamSpecClass
<!-- ##### MACRO G_IS_PARAM_SPEC_CLASS ##### -->
<para>
2003-10-16 01:03:20 +02:00
Checks whether @pclass "is a" valid #GParamSpecClass structure of type
%G_TYPE_PARAM or derived.
2001-11-14 02:08:19 +01:00
</para>
@pclass: a #GParamSpecClass
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### MACRO G_PARAM_SPEC_GET_CLASS ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Retrieves the #GParamSpecClass of a #GParamSpec.
2001-11-14 02:08:19 +01:00
</para>
@pspec: a valid #GParamSpec
2000-09-06 06:32:45 +02:00
2001-11-14 02:08:19 +01:00
<!-- ##### MACRO G_PARAM_SPEC_TYPE ##### -->
<para>
2003-10-16 01:03:20 +02:00
Retrieves the #GType of this @pspec.
2000-09-06 06:32:45 +02:00
</para>
2001-11-13 19:49:56 +01:00
@pspec: a valid #GParamSpec
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### MACRO G_PARAM_SPEC_TYPE_NAME ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Retrieves the #GType name of this @pspec.
2000-09-06 06:32:45 +02:00
</para>
2001-11-13 19:49:56 +01:00
@pspec: a valid #GParamSpec
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### MACRO G_PARAM_SPEC_VALUE_TYPE ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Retrieves the #GType to initialize a #GValue for this parameter.
2000-09-06 06:32:45 +02:00
</para>
2001-11-13 19:49:56 +01:00
@pspec: a valid #GParamSpec
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### STRUCT GParamSpec ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-25 01:10:37 +02:00
All fields of the <structname>GParamSpec</structname> struct are private and
should not be used directly, except for the following:
2000-09-06 06:32:45 +02:00
</para>
2001-11-13 19:49:56 +01:00
@g_type_instance: private #GTypeInstance portion
@name: name of this parameter
@flags: #GParamFlags flags for this parameter
@value_type: the #GValue type for this parameter
@owner_type: #GType type that uses (introduces) this paremeter
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### STRUCT GParamSpecClass ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-25 01:10:37 +02:00
The class structure for the <structname>GParamSpec</structname> type.
Normally, <structname>GParamSpec</structname> classes are filled by
g_param_type_register_static().
</para>
@g_type_class: the parent class
@value_type: the #GValue type for this parameter
@finalize: The instance finalization function (optional), should chain
up to the finalize method of the parent class.
@value_set_default: Resets a @value to the default value for this type
(recommended, the default is g_value_reset()), see
g_param_value_set_default().
@value_validate: Ensures that the contents of @value comply with the
specifications set out by this type (optional), see
g_param_value_set_validate().
@values_cmp: Compares @value1 with @value2 according to this type
(recommended, the default is memcmp()), see g_param_values_cmp().
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### ENUM GParamFlags ##### -->
<para>
Through the #GParamFlags flag values, certain aspects of parameters
can be configured.
</para>
@G_PARAM_READABLE: the parameter is readable
@G_PARAM_WRITABLE: the parameter is writable
@G_PARAM_CONSTRUCT: the parameter will be set upon object construction
@G_PARAM_CONSTRUCT_ONLY: the parameter will only be set upon object construction
@G_PARAM_LAX_VALIDATION: upon parameter conversion (see g_param_value_convert())
strict validation is not required
2005-03-21 05:55:26 +01:00
@G_PARAM_STATIC_NAME: the string used as name when constructing the
parameter is guaranteed to remain valid and
unmodified for the lifetime of the parameter.
Since 2.8
2007-12-21 01:37:41 +01:00
@G_PARAM_PRIVATE:
@G_PARAM_STATIC_NICK:
2005-03-21 05:55:26 +01:00
@G_PARAM_STATIC_BLURB: the string used as blurb when constructing the
parameter is guaranteed to remain valid and
unmodified for the lifetime of the parameter.
Since 2.8
2000-09-06 06:32:45 +02:00
2001-01-31 07:27:41 +01:00
<!-- ##### MACRO G_PARAM_READWRITE ##### -->
<para>
2001-11-13 19:49:56 +01:00
#GParamFlags value alias for %G_PARAM_READABLE | %G_PARAM_WRITABLE.
2001-01-31 07:27:41 +01:00
</para>
2007-03-14 20:09:49 +01:00
<!-- ##### MACRO G_PARAM_STATIC_STRINGS ##### -->
<para>
#GParamFlags value alias for %G_PARAM_STATIC_NAME | %G_PARAM_STATIC_NICK | %G_PARAM_STATIC_BLURB.
2007-10-17 05:32:16 +02:00
Since 2.13.0
2007-03-14 20:09:49 +01:00
</para>
2001-01-31 07:27:41 +01:00
<!-- ##### MACRO G_PARAM_MASK ##### -->
<para>
2001-11-13 19:49:56 +01:00
Mask containing the bits of #GParamSpec.flags which are reserved for GLib.
2001-01-31 07:27:41 +01:00
</para>
<!-- ##### MACRO G_PARAM_USER_SHIFT ##### -->
<para>
2001-11-13 19:49:56 +01:00
Minimum shift count to be used for user defined flags, to be stored in
#GParamSpec.flags.
2001-01-31 07:27:41 +01:00
</para>
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_spec_ref ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Increments the reference count of @pspec.
2000-09-06 06:32:45 +02:00
</para>
2001-11-13 19:49:56 +01:00
@pspec: a valid #GParamSpec
@Returns: the #GParamSpec that was passed into this function
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_spec_unref ##### -->
<para>
2003-10-16 01:03:20 +02:00
Decrements the reference count of a @pspec.
2000-09-06 06:32:45 +02:00
</para>
2001-11-13 19:49:56 +01:00
@pspec: a valid #GParamSpec
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_spec_sink ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
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
2005-08-06 05:40:07 +02:00
<literal>g_param_spec_ref (pspec); g_param_spec_sink (pspec);</literal>
2001-11-13 19:49:56 +01:00
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).
2000-09-06 06:32:45 +02:00
</para>
2001-11-13 19:49:56 +01:00
@pspec: a valid #GParamSpec
2000-09-06 06:32:45 +02:00
2005-11-27 21:09:13 +01:00
<!-- ##### FUNCTION g_param_spec_ref_sink ##### -->
<para>
Convenience function to ref and sink a #GParamSpec.
</para>
@pspec: a valid #GParamSpec
@Returns: the #GParamSpec that was passed into this function
@Since: 2.10
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_value_set_default ##### -->
2001-01-09 03:18:57 +01:00
<para>
2003-10-16 01:03:20 +02:00
Sets @value to its default value as specified in @pspec.
2001-01-09 03:18:57 +01:00
</para>
2001-11-14 02:08:19 +01:00
@pspec: a valid #GParamSpec
@value: a #GValue of correct type for @pspec
2001-01-09 03:18:57 +01:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_value_defaults ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Checks whether @value contains the default value as specified in @pspec.
2000-09-06 06:32:45 +02:00
</para>
2001-11-14 02:08:19 +01:00
@pspec: a valid #GParamSpec
@value: a #GValue of correct type for @pspec
2006-12-17 20:51:28 +01:00
@Returns: whether @value contains the canonical default for this @pspec
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_value_validate ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Ensures that the contents of @value comply with the specifications
2001-11-14 02:08:19 +01:00
set out by @pspec. For example, a #GParamSpecInt might require
that integers stored in @value may not be smaller than -42 and not be
greater than +42. If @value contains an integer outside of this range,
it is modified accordingly, so the resulting value will fit into the
range -42 .. +42.
2000-09-06 06:32:45 +02:00
</para>
2001-11-14 02:08:19 +01:00
@pspec: a valid #GParamSpec
@value: a #GValue of correct type for @pspec
@Returns: whether modifying @value was necessary to ensure validity
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_value_convert ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Transforms @src_value into @dest_value if possible, and then validates
@dest_value, in order for it to conform to @pspec.
If @strict_validation is %TRUE this function will only succeed if
2001-11-14 02:08:19 +01:00
the transformed @dest_value complied to @pspec without modifications.
2000-09-06 06:32:45 +02:00
2001-11-14 02:08:19 +01:00
See also g_value_type_transformable(), g_value_transform() and
g_param_value_validate().
2000-09-06 06:32:45 +02:00
</para>
2001-11-14 02:08:19 +01:00
@pspec: a valid #GParamSpec
@src_value: souce #GValue
@dest_value: destination #GValue of correct type for @pspec
2002-12-06 02:47:27 +01:00
@strict_validation: %TRUE requires @dest_value to conform to @pspec without modifications
2005-08-06 05:40:07 +02:00
@Returns: %TRUE if transformation and validation were successful,
2001-11-14 02:08:19 +01:00
%FALSE otherwise and @dest_value is left untouched.
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_values_cmp ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Compares @value1 with @value2 according to @pspec, and return -1, 0 or +1,
if @value1 is found to be less than, equal to or greater than @value2,
respectively.
2000-09-06 06:32:45 +02:00
</para>
2001-11-14 02:08:19 +01:00
@pspec: a valid #GParamSpec
@value1: a #GValue of correct type for @pspec
@value2: a #GValue of correct type for @pspec
@Returns: -1, 0 or +1, for a less than, equal to or greater than result
2000-09-06 06:32:45 +02:00
2001-11-22 19:54:47 +01:00
<!-- ##### FUNCTION g_param_spec_get_name ##### -->
<para>
2003-09-30 00:48:05 +02:00
Returns the name of a #GParamSpec.
2001-11-22 19:54:47 +01:00
</para>
2003-09-30 00:48:05 +02:00
@pspec: a valid #GParamSpec
@Returns: the name of @pspec.
2001-11-22 19:54:47 +01:00
<!-- ##### FUNCTION g_param_spec_get_nick ##### -->
<para>
2003-09-30 00:48:05 +02:00
Returns the nickname of a #GParamSpec.
2001-11-22 19:54:47 +01:00
</para>
2003-09-30 00:48:05 +02:00
@pspec: a valid #GParamSpec
@Returns: the nickname of @pspec.
2001-11-22 19:54:47 +01:00
<!-- ##### FUNCTION g_param_spec_get_blurb ##### -->
<para>
2003-09-30 00:48:05 +02:00
Returns the short description of a #GParamSpec.
2001-11-22 19:54:47 +01:00
</para>
2003-09-30 00:48:05 +02:00
@pspec: a valid #GParamSpec
@Returns: the short description of @pspec.
2001-11-22 19:54:47 +01:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_spec_get_qdata ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Gets back user data pointers stored via g_param_spec_set_qdata().
2000-09-06 06:32:45 +02:00
</para>
2003-09-30 00:48:05 +02:00
@pspec: a valid #GParamSpec
@quark: a #GQuark, naming the user data pointer
@Returns: the user data pointer set, or %NULL
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_spec_set_qdata ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Sets an opaque, named pointer on a #GParamSpec. The name is specified
through a #GQuark (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().
2003-09-30 00:48:05 +02:00
Setting a previously set user data pointer, overrides (frees)
2005-08-06 05:40:07 +02:00
the old pointer set, using %NULL as pointer essentially
2003-09-30 00:48:05 +02:00
removes the data stored.
2000-09-06 06:32:45 +02:00
</para>
2003-09-30 00:48:05 +02:00
@pspec: the #GParamSpec to set store a user data pointer
@quark: a #GQuark, naming the user data pointer
@data: an opaque user data pointer
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_spec_set_qdata_full ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
This function works like g_param_spec_set_qdata(), but in addition,
2003-09-30 00:48:05 +02:00
a <literal>void (*destroy) (gpointer)</literal> function may be
specified which is called with @data as argument when the @pspec is
2003-10-16 01:03:20 +02:00
finalized, or the data is being overwritten by a call to
g_param_spec_set_qdata() with the same @quark.
2000-09-06 06:32:45 +02:00
</para>
2003-09-30 00:48:05 +02:00
@pspec: the #GParamSpec to set store a user data pointer
@quark: a #GQuark, naming the user data pointer
@data: an opaque user data pointer
@destroy: function to invoke with @data as argument, when @data needs to
be freed
2000-09-06 06:32:45 +02:00
2001-11-13 19:49:56 +01:00
<!-- ##### FUNCTION g_param_spec_steal_qdata ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Gets back user data pointers stored via g_param_spec_set_qdata() and
removes the @data from @pspec without invoking it's destroy() function
(if any was set).
2003-09-30 00:48:05 +02:00
Usually, calling this function is only required to update
user data pointers with a destroy notifier.
2000-09-06 06:32:45 +02:00
</para>
2003-09-30 00:48:05 +02:00
@pspec: the #GParamSpec to get a stored user data pointer from
@quark: a #GQuark, naming the user data pointer
@Returns: the user data pointer set, or %NULL
2000-09-06 06:32:45 +02:00
2003-10-21 21:14:04 +02:00
<!-- ##### FUNCTION g_param_spec_get_redirect_target ##### -->
<para>
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
2005-08-06 05:40:07 +02:00
type while preserving all the properties from the parent
2003-10-21 21:14:04 +02:00
type. Redirection is established by creating a property
2007-08-08 20:02:57 +02:00
of type #GParamSpecOverride. See g_object_class_override_property()
2003-10-21 21:14:04 +02:00
for an example of the use of this capability.
</para>
@pspec: a #GParamSpec
@Returns: paramspec to which requests on this paramspec should
be redirected, or %NULL if none.
2003-10-21 23:10:26 +02:00
@Since: 2.4
2003-10-21 21:14:04 +02:00
2003-10-24 00:42:31 +02:00
2001-11-14 02:08:19 +01:00
<!-- ##### FUNCTION g_param_spec_internal ##### -->
<para>
2003-02-07 23:08:53 +01:00
Creates a new #GParamSpec instance.
</para>
<para>
A property name consists of segments consisting of ASCII letters and
digits, separated by either the '-' or '_' character. The first
character of a property name must be a letter. Names which violate these
rules lead to undefined behaviour.
</para>
<para>
When creating and looking up a #GParamSpec, either separator can be used,
but they cannot be mixed. Using '-' is considerably more efficient and in
fact required when using property names as detail strings for signals.
2001-11-14 02:08:19 +01:00
</para>
2003-02-07 23:08:53 +01:00
@param_type: the #GType for the property; must be derived from #G_TYPE_PARAM
@name: the canonical name of the property
@nick: the nickname of the property
@blurb: a short description of the property
@flags: a combination of #GParamFlags
@Returns: a newly allocated #GParamSpec instance
2001-11-14 02:08:19 +01:00
2001-01-31 07:27:41 +01:00
<!-- ##### STRUCT GParamSpecTypeInfo ##### -->
<para>
2003-10-16 01:03:20 +02:00
This structure is used to provide the type system with the information
required to initialize and destruct (finalize) a parameter's class and
instances thereof.
The initialized structure is passed to the g_param_type_register_static()
The type system will perform a deep copy of this structure, so it's memory
does not need to be persistent across invocation of
g_param_type_register_static().
</para>
@instance_size: Size of the instance (object) structure.
2005-12-07 16:57:28 +01:00
@n_preallocs: Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the <link linkend="glib-Memory-Slices">slice allocator</link> now.
2003-10-16 01:03:20 +02:00
@instance_init: Location of the instance initialization function (optional).
@value_type: The #GType of values conforming to this #GParamSpec
@finalize: The instance finalization function (optional).
@value_set_default: Resets a @value to the default value for @pspec
(recommended, the default is g_value_reset()), see
g_param_value_set_default().
@value_validate: Ensures that the contents of @value comply with the
specifications set out by @pspec (optional), see
g_param_value_set_validate().
@values_cmp: Compares @value1 with @value2 according to @pspec
(recommended, the default is memcmp()), see g_param_values_cmp().
2001-01-31 07:27:41 +01:00
<!-- ##### FUNCTION g_param_type_register_static ##### -->
2000-09-06 06:32:45 +02:00
<para>
2003-10-16 01:03:20 +02:00
Registers @name as the name of a new static type derived from
#G_TYPE_PARAM. The type system uses the information contained in the
#GParamSpecTypeInfo structure pointed to by @info to manage the #GParamSpec
type and its instances.
2000-09-06 06:32:45 +02:00
</para>
2003-10-21 23:10:26 +02:00
@name: 0-terminated string used as the name of the new #GParamSpec type.
2003-10-16 01:03:20 +02:00
@pspec_info: The #GParamSpecTypeInfo for this #GParamSpec type.
@Returns: The new type identifier.
2000-09-06 06:32:45 +02:00
2001-01-31 07:27:41 +01:00
<!-- ##### STRUCT GParamSpecPool ##### -->
<para>
2003-10-16 01:03:20 +02:00
A #GParamSpecPool maintains a collection of #GParamSpec<!-- -->s which can be
quickly accessed by owner and name. The implementation of the #GObject property
system uses such a pool to store the #GParamSpecs of the properties all object
types.
2001-01-31 07:27:41 +01:00
</para>
2001-01-09 03:18:57 +01:00
<!-- ##### FUNCTION g_param_spec_pool_new ##### -->
<para>
2003-10-16 01:03:20 +02:00
Creates a new #GParamSpecPool.
</para>
<para>
If @type_prefixing is %TRUE, lookups in the newly created pool will
allow to specify the owner as a colon-separated prefix of the property name,
like "GtkContainer:border-width". This feature is deprecated, so you should
always set @type_prefixing to %FALSE.
2001-01-09 03:18:57 +01:00
</para>
2003-10-16 01:03:20 +02:00
@type_prefixing: Whether the pool will support type-prefixed property names.
@Returns: a newly allocated #GParamSpecPool.
2001-01-09 03:18:57 +01:00
<!-- ##### FUNCTION g_param_spec_pool_insert ##### -->
<para>
2003-10-16 01:03:20 +02:00
Inserts a #GParamSpec in the pool.
2001-01-09 03:18:57 +01:00
</para>
2003-10-16 01:03:20 +02:00
@pool: a #GParamSpecPool.
@pspec: the #GParamSpec to insert
@owner_type: a #GType identifying the owner of @pspec
2001-01-09 03:18:57 +01:00
<!-- ##### FUNCTION g_param_spec_pool_remove ##### -->
<para>
2003-10-16 01:03:20 +02:00
Removes a #GParamSpec from the pool.
2001-01-09 03:18:57 +01:00
</para>
2003-10-16 01:03:20 +02:00
@pool: a #GParamSpecPool
@pspec: the #GParamSpec to remove
2001-01-09 03:18:57 +01:00
<!-- ##### FUNCTION g_param_spec_pool_lookup ##### -->
<para>
2003-10-16 01:03:20 +02:00
Looks up a #GParamSpec in the pool.
2001-01-09 03:18:57 +01:00
</para>
2003-10-16 01:03:20 +02:00
@pool: a #GParamSpecPool
@param_name: the name to look for
@owner_type: the owner to look for
@walk_ancestors: If %TRUE, also try to find a #GParamSpec with @param_name
owned by an ancestor of @owner_type.
@Returns: The found #GParamSpec, or %NULL if no matching #GParamSpec was found.
2001-01-09 03:18:57 +01:00
2001-11-14 02:08:19 +01:00
<!-- ##### FUNCTION g_param_spec_pool_list ##### -->
2001-01-09 03:18:57 +01:00
<para>
2003-10-16 01:03:20 +02:00
Gets an array of all #GParamSpec<!-- -->s owned by @owner_type in the pool.
2001-01-09 03:18:57 +01:00
</para>
2003-10-16 01:03:20 +02:00
@pool: a #GParamSpecPool
@owner_type: the owner to look for
@n_pspecs_p: return location for the length of the returned array
@Returns: a newly allocated array containing pointers to all
#GParamSpec<!-- -->s owned by @owner_type in the pool
2001-01-09 03:18:57 +01:00
2001-11-22 19:54:47 +01:00
<!-- ##### FUNCTION g_param_spec_pool_list_owned ##### -->
<para>
2003-10-16 01:03:20 +02:00
Gets an #GList of all #GParamSpec<!-- -->s owned by @owner_type in the pool.
2001-11-22 19:54:47 +01:00
</para>
2003-10-16 01:03:20 +02:00
@pool: a #GParamSpecPool
@owner_type: the owner to look for
@Returns: a #GList of all #GParamSpec<!-- -->s owned by @owner_type in
the pool#GParamSpec<!-- -->s.
2001-11-22 19:54:47 +01:00