glib

Module enums

Source

Structs§

  • Representation of an enum for dynamically, at runtime, querying the values of the enum and using them.
  • Representation of a single enum value of an EnumClass. A structure which contains a single enum value, its name, and its nickname.
  • Representation of enumeration values wrapped by EnumerationValuesStorage. Easier to use because don’t have a size parameter to be specify. Should be used only to register an enum or flags as a dynamic type. see TypePluginRegisterImpl::register_dynamic_enum(), TypePluginRegisterImpl::register_dynamic_flags() and TypePluginImpl::complete_type_info(). Field is intentionally private to ensure other modules will not access the enum (or flags) values by this way. Use EnumClass::values() or EnumClass::value() to get the enum values. Use FlagsClass::values() or FlagsClass::value() to get the flags values.
  • Storage of enumeration values terminated by a zero value. Should be used only as a storage location for EnumValue or FlagsValue when registering an enum or flags as a dynamic type. see TypePluginRegisterImpl::register_dynamic_enum(), TypePluginRegisterImpl::register_dynamic_flags() and TypePluginImpl::complete_type_info(). Inner is intentionally private to ensure other modules will not access the enum (or flags) values by this way. Use EnumClass::values() or EnumClass::value() to get the enum values. Use FlagsClass::values() or FlagsClass::value() to get the flags values.
  • Builder for conveniently setting/unsetting flags and returning a Value.
  • Representation of a flags for dynamically, at runtime, querying the values of the enum and using them
  • Representation of a single flags value of a FlagsClass. A structure which contains a single flags value, its name, and its nickname.
  • An error returned from the get function on a Value for enum types.
  • An error returned from the get function on a Value for flags types.

Enums§

  • These are logical ids for special directories which are defined depending on the platform used. You should use g_get_user_special_dir() to retrieve the full path associated to the logical id.

Traits§

  • helper trait to define the zero value and the associated GLib type.

Type Aliases§