Function
GObjectflags_register_static
Declaration
GType
g_flags_register_static (
const gchar* name,
const GFlagsValue* const_static_values
)
Description
Registers a new static flags type with the name name
.
It is normally more convenient to let [glib-mkenums][glib-mkenums]
generate a my_flags_get_type()
function from a usual C enumeration
definition than to write one yourself using g_flags_register_static().
Parameters
name |
const gchar* |
A nul-terminated string used as the name of the new type. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
const_static_values |
GFlagsValue |
An array of |
|
The data is owned by the caller of the function. |