Fill in the fields of a color from a string specification.
The string can either one of a large set of standard names. (Taken from the X11 <filename>rgb.txt</filename> file), or it can be a hex value in the form 'rgb' 'rrggbb' 'rrrgggbbb' or 'rrrrggggbbbb' where 'r', 'g' and 'b' are hex digits of the red, green, and blue components of the color, respectively. (White in the four forms is 'fff' 'ffffff' 'fffffffff' and 'ffffffffffff')
Parameters:
spec
A string specifying the new color.
Returns:
true if parsing of the specifier succeeded, otherwise false.
void Pango::Color::set_blue
(
const guint16&
value
)
Sets the blue component of the color.
Parameters:
blue
The blue component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
void Pango::Color::set_green
(
const guint16&
value
)
Sets the green component of the color.
Parameters:
green
The green component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
void Pango::Color::set_red
(
const guint16&
value
)
Sets the red component of the color.
Parameters:
red
The red component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
Friends And Related Function Documentation
const Pango::Color& wrap
(
const PangoColor*
object
)
[related]
Pango::Color& wrap
(
PangoColor*
object
)
[related]
Member Data Documentation
PangoColor Pango::Color::gobject_ [protected]
The documentation for this class was generated from the following file: