RcProperty.parseEnum

bool parseEnum(gobject.param_spec.ParamSpec pspec, glib.string_.String gstring, gobject.value.Value propertyValue)

A #GtkRcPropertyParser for use with [gtk.settings.Settings.installPropertyParser] or [gtk.widget_class.WidgetClass.installStylePropertyParser] which parses a single enumeration value.

The enumeration value can be specified by its name, its nickname or its numeric value. For consistency with flags parsing, the value may be surrounded by parentheses.

Parameters

pspeca #GParamSpec
gstringthe #GString to be parsed
propertyValuea #GValue which must hold enum values.

Returns

true if gstring could be parsed and property_value

has been set to the resulting #GEnumValue.