parse_enum


Description:

public static bool parse_enum (ParamSpec pspec, StringBuilder gstring, Value property_value)

A RcPropertyParser for use with install_property_parser or install_style_property_parser 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:

pspec

a ParamSpec

gstring

the StringBuilder to be parsed

property_value

a Value which must hold enum values.

Returns:

true if gstring could be parsed and property_value has been set to the resulting EnumValue.