Synopsis

#include <adg-1/adg.h>

#define             ADG_PARAM_SPEC_DRESS                (pspec)
GParamSpec *        adg_param_spec_dress                (const gchar *name,
                                                         const gchar *nick,
                                                         const gchar *blurb,
                                                         AdgDress dress,
                                                         GParamFlags flags);

Description

The ADG_TYPE_PARAM_DRESS type is a parameter specification compatible with G_TYPE_PARAM_ENUM that provides additional validation: it rejects values that are incompatibles (that is, that are not related) with the current one. Check the adg_dress_is_related() documentation for details on what "related" means.

Internally, the value setting is performed by calling the adg_dress_set() API.

Details

ADG_PARAM_SPEC_DRESS()

#define ADG_PARAM_SPEC_DRESS(pspec)     (G_TYPE_CHECK_INSTANCE_CAST((pspec), ADG_TYPE_PARAM_DRESS, AdgParamSpecDress))

adg_param_spec_dress ()

GParamSpec *        adg_param_spec_dress                (const gchar *name,
                                                         const gchar *nick,
                                                         const gchar *blurb,
                                                         AdgDress dress,
                                                         GParamFlags flags);

Creates a param spec to hold a dress value. This is similar to g_param_spec_enum() but rejects a new dress value if it is not related with the old one. The setting is performed via adg_dress_set(), so check its documentation for details.

name :

canonical name

nick :

nickname of the param

blurb :

brief desciption

dress :

the AdgDress dress

flags :

a combination of GParamFlags

Returns :

the newly allocated GParamSpec. [transfer full]

Since 1.0