![]() |
![]() |
![]() |
adg-1 reference manual | ![]() |
---|---|---|---|---|
Top | Description |
#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
);
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.
#define ADG_PARAM_SPEC_DRESS(pspec) (G_TYPE_CHECK_INSTANCE_CAST((pspec), ADG_TYPE_PARAM_DRESS, AdgParamSpecDress))
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.
|
canonical name |
|
nickname of the param |
|
brief desciption |
|
the AdgDress dress |
|
a combination of GParamFlags |
Returns : |
the newly allocated GParamSpec. [transfer full] |
Since 1.0