TypeModule.registerFlags

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 #GType identifier for the type is returned, otherwise the type is newly registered, and the resulting #GType identifier returned.

As long as any instances of the type exist, the type plugin will not be unloaded.

class TypeModule
registerFlags

Parameters

name string

name for the type

constStaticValues GFlagsValue*

an array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0.

Return Value

Type: GType

the new or existing type ID

Meta