parse_flags


Description:

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

A RcPropertyParser for use with install_property_parser or install_style_property_parser which parses flags.

Flags can be specified by their name, their nickname or numerically. Multiple flags can be specified in the form `"( flag1 | flag2 | ... )"`.

Parameters:

pspec

a ParamSpec

gstring

the StringBuilder to be parsed

property_value

a Value which must hold flags values.

Returns:

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