parse_color


Description:

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

A RcPropertyParser for use with install_property_parser or install_style_property_parser which parses a color given either by its name or in the form `{ red, green, blue }` where red, green and blue are integers between 0 and 65535 or floating-point numbers between 0 and 1.

Parameters:

pspec

a ParamSpec

gstring

the StringBuilder to be parsed

property_value

a Value which must hold Color values.

Returns:

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