GObject.enum_get_value
function enum_get_value(enum_class: GObject.EnumClass, value: Number(gint)): GObject.EnumValue { // Gjs wrapper for g_enum_get_value() }
Returns the GObject.EnumValue for a value.
- enum_class
- value
the value to look up
- Returns
the GObject.EnumValue for value, or null if value is not a member of the enumeration