GObject.enum_get_value_by_name
function enum_get_value_by_name(enum_class: GObject.EnumClass, name: String): GObject.EnumValue { // Gjs wrapper for g_enum_get_value_by_name() }
Looks up a GObject.EnumValue by name.
- enum_class
- name
the name to look up
- Returns
the GObject.EnumValue with name name, or null if the enumeration doesn't have a member with that name