pub fn utils_enum_to_str(type_: Type, value: i32) -> GStringAvailable on crate feature
v1_2 only.Expand description
Converts an enum value to its string representation. If the enum is a
G_TYPE_FLAGS the function returns a comma-separated list of matching values.
If the value has no corresponding string representation, it is converted
to a number. For enums it is converted to a decimal number, for flags
to an (unsigned) hex number.
§type_
the GType of the enum
§value
the value to be translated
§Returns
a newly allocated string or None