Function
GObjectparam_spec_gtype
since: 2.10
Declaration
GParamSpec*
g_param_spec_gtype (
const gchar* name,
const gchar* nick,
const gchar* blurb,
GType is_a_type,
GParamFlags flags
)
Description
Creates a new GParamSpecGType instance specifying a
G_TYPE_GTYPE property.
See g_param_spec_internal() for details on property names.
Available since: 2.10
Parameters
name-
Type:
const gchar*Canonical name of the property specified.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. nick-
Type:
const gchar*Nick name for the property specified.
The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. blurb-
Type:
const gchar*Description of the property specified.
The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. is_a_type-
Type:
GTypeA
GTypewhose subtypes are allowed as values of the property (useG_TYPE_NONEfor any type). flags-
Type:
GParamFlagsFlags for the property specified.
Return value
Type: GParamSpec
A newly created parameter specification.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |