Lines Matching refs:GParamSpec
35 * SECTION:gparamspec
40 * @title: GParamSpec
42 * #GParamSpec is an object structure that encapsulates the metadata
68 static void g_param_spec_init (GParamSpec *pspec,
70 static void g_param_spec_finalize (GParamSpec *pspec);
117 sizeof (GParamSpec),
125 /* This should be registred as GParamSpec instead of GParam, for
157 g_param_spec_init (GParamSpec *pspec,
174 g_param_spec_finalize (GParamSpec *pspec)
192 * @pspec: a valid #GParamSpec
196 * Returns: the #GParamSpec that was passed into this function
198 GParamSpec*
199 g_param_spec_ref (GParamSpec *pspec)
211 * @pspec: a valid #GParamSpec
216 g_param_spec_unref (GParamSpec *pspec)
233 * @pspec: a valid #GParamSpec
235 * The initial reference count of a newly created #GParamSpec is 1,
244 g_param_spec_sink (GParamSpec *pspec)
260 * @pspec: a valid #GParamSpec
262 * Convenience function to ref and sink a #GParamSpec.
265 * Returns: the #GParamSpec that was passed into this function
267 GParamSpec*
268 g_param_spec_ref_sink (GParamSpec *pspec)
280 * @pspec: a valid #GParamSpec
282 * Get the name of a #GParamSpec.
287 g_param_spec_get_name (GParamSpec *pspec)
296 * @pspec: a valid #GParamSpec
298 * Get the nickname of a #GParamSpec.
303 g_param_spec_get_nick (GParamSpec *pspec)
311 GParamSpec *redirect_target;
323 * @pspec: a valid #GParamSpec
325 * Get the short description of a #GParamSpec.
330 g_param_spec_get_blurb (GParamSpec *pspec)
338 GParamSpec *redirect_target;
392 * Creates a new #GParamSpec instance.
399 * When creating and looking up a #GParamSpec, either separator can be
404 * Beyond the name, #GParamSpec<!-- -->s have two more descriptive
410 * Returns: a newly allocated #GParamSpec instance
419 GParamSpec *pspec;
458 * @pspec: a valid #GParamSpec
466 g_param_spec_get_qdata (GParamSpec *pspec,
476 * @pspec: the #GParamSpec to set store a user data pointer
480 * Sets an opaque, named pointer on a #GParamSpec. The name is
488 g_param_spec_set_qdata (GParamSpec *pspec,
500 * @pspec: the #GParamSpec to set store a user data pointer
513 g_param_spec_set_qdata_full (GParamSpec *pspec,
526 * @pspec: the #GParamSpec to get a stored user data pointer from
537 g_param_spec_steal_qdata (GParamSpec *pspec,
548 * @pspec: a #GParamSpec
563 GParamSpec*
564 GParamSpec *pspec)
580 * @pspec: a valid #GParamSpec
586 g_param_value_set_default (GParamSpec *pspec,
599 * @pspec: a valid #GParamSpec
607 g_param_value_defaults (GParamSpec *pspec,
627 * @pspec: a valid #GParamSpec
640 g_param_value_validate (GParamSpec *pspec,
661 * @pspec: a valid #GParamSpec
679 g_param_value_convert (GParamSpec *pspec,
714 * @pspec: a valid #GParamSpec
725 g_param_values_cmp (GParamSpec *pspec,
796 GParamSpec *param = collect_values[0].v_pointer;
824 GParamSpec **param_p = collect_values[0].v_pointer;
844 * A #GParamSpecPool maintains a collection of #GParamSpec<!-- -->s which can be
859 const GParamSpec *key = key_spec;
873 const GParamSpec *key1 = key_spec_1;
874 const GParamSpec *key2 = key_spec_2;
909 * @pspec: the #GParamSpec to insert
912 * Inserts a #GParamSpec in the pool.
916 GParamSpec *pspec,
951 * @pspec: the #GParamSpec to remove
953 * Removes a #GParamSpec from the pool.
957 GParamSpec *pspec)
975 static inline GParamSpec*
981 GParamSpec key, *pspec;
1029 * @walk_ancestors: If %TRUE, also try to find a #GParamSpec with @param_name
1032 * Looks up a #GParamSpec in the pool.
1034 * Returns: The found #GParamSpec, or %NULL if no matching #GParamSpec was found.
1036 GParamSpec*
1042 GParamSpec *pspec;
1105 GParamSpec *pspec = value;
1118 * Gets an #GList of all #GParamSpec<!-- -->s owned by @owner_type in
1121 * Returns: a #GList of all #GParamSpec<!-- -->s owned by @owner_type
1122 * in the pool#GParamSpec<!-- -->s.
1146 const GParamSpec *pspec1 = a, *pspec2 = b;
1162 GParamSpec *pspec = plist->data;
1163 GParamSpec *found;
1178 GParamSpec *redirect = g_param_spec_get_redirect_target (found);
1204 GParamSpec *pspec = value;
1238 GParamSpec *pspec = value;
1253 * Gets an array of all #GParamSpec<!-- -->s owned by @owner_type in
1257 * #GParamSpec<!-- -->s owned by @owner_type in the pool
1259 GParamSpec**
1264 GParamSpec **pspecs, **p;
1288 pspecs = g_new (GParamSpec*, *n_pspecs_p + 1);
1310 void (*finalize) (GParamSpec *pspec);
1311 void (*value_set_default) (GParamSpec *pspec,
1313 gboolean (*value_validate) (GParamSpec *pspec,
1315 gint (*values_cmp) (GParamSpec *pspec,
1338 default_value_set_default (GParamSpec *pspec,
1345 default_values_cmp (GParamSpec *pspec,
1354 * @name: 0-terminated string used as the name of the new #GParamSpec type.
1355 * @pspec_info: The #GParamSpecTypeInfo for this #GParamSpec type.
1360 * #GParamSpec type and its instances.
1384 g_return_val_if_fail (pspec_info->instance_size >= sizeof (GParamSpec), 0);
1407 * @param: the #GParamSpec to be set
1413 GParamSpec *param)
1429 * @param: the #GParamSpec to be set
1437 GParamSpec *param)
1445 * @param: the #GParamSpec to be set
1455 GParamSpec *param)
1472 * Returns: #GParamSpec content of @value
1474 GParamSpec*
1489 * Returns: #GParamSpec content of @value, should be unreferenced when
1492 GParamSpec*