Enumerations
Enumerations — Enumeration Utility Functions
|
|
Description
Utility functions for working with enums for user interfaces.
Details
gf_enum_from_string ()
gint gf_enum_from_string (GType type,
const gchar *str);
Gets the value of a GfEnum from str.
Note: str MUST be the untranslated string!
type : |
The GType of the GfEnum.
|
str : |
The string.
|
|
Returns : |
The value.
|
gf_enum_to_string ()
const gchar* gf_enum_to_string (GType type,
gint value,
gboolean i18n);
Converts a GfEnum into a string.
type : |
The GType of the GfEnum.
|
value : |
The value of the GfEnum.
|
i18n : |
TRUE for the translated version, FALSE of the untranslated version.
|
|
Returns : |
value as a string.
|