GObject.flags_get_value_by_name

function flags_get_value_by_name(flags_class: GObject.FlagsClass, name: String): GObject.FlagsValue {
    // Gjs wrapper for g_flags_get_value_by_name()
}
  

Looks up a GObject.FlagsValue by name.

flags_class

a GObject.FlagsClass

name

the name to look up

Returns

the GObject.FlagsValue with name name, or null if there is no flag with that name