register_flags
Description:
[ Version ( since = "2.6" ) ]
public Type register_flags (string name, FlagsValue const_static_values)
public Type register_flags (string name, FlagsValue const_static_values)
Looks up or registers a flags type that is implemented with a particular type plugin.
If a type with name type_name
was previously registered, the Type
identifier for the type is returned, otherwise the type is newly registered, and the resulting
Type identifier returned.
As long as any instances of the type exist, the type plugin will not be unloaded.
Since 2.56 if this is null this will call g_type_register_static
instead. This can be used when making a static build of the module.
Parameters:
this | |
name |
name for the type |
const_static_values |
an array of FlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0. |
Returns:
the new or existing type ID |