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