Logo Search packages:      
Sourcecode: ardour version File versions

bool Gdk::Color::set ( const Glib::ustring value  ) 

Parses a textual specification of a color and fills in the red, green, and blue values. The color is not allocated - you must call Gdk::Colormap::alloc_color() yourself. The text string can be in any of the forms accepted by XParseColor; these include names for a color from rgb.txt, such as DarkSlateGray, or a hex specification such as 305050.

value the string specifying the color.
true if the parsing succeeded.

Definition at line 149 of file color.cc.

References Glib::ustring::c_str(), and gobj().

  return gdk_color_parse(value.c_str(), gobj());

Generated by  Doxygen 1.6.0   Back to index