函数
GObjectenum_register_static
声明 [src]
GType
g_enum_register_static (
const gchar* name,
const GEnumValue* const_static_values
)
说明 [src]
注册一个使用名称 name
的新静态枚举类型。
通常来说,由 [glib-mkenums][glib-mkenums] 从常用的 C 枚举定义生成一个 my_enum_get_type()
函数比使用 g_enum_register_static() 自己编写该函数更方便。