#include <colorwidget.h>
Public Member Functions | |
ColorWidget (const Glib::ustring &color) | |
Constructor taking string representation of color. | |
ColorWidget (char r, char g, char b) | |
Constructor taking an RGB color. | |
Private Member Functions | |
void | init () |
Initialize the widget. | |
virtual void | on_realize () |
virtual bool | on_expose_event (GdkEventExpose *e) |
Private Attributes | |
Glib::RefPtr< Gdk::GC > | m_GC |
Gdk::Color | m_Color |
The given color is drawn in a small rectangle area. This widget is intended to provide a preview sample of a color.
ColorWidget::ColorWidget | ( | const Glib::ustring & | color | ) |
Constructor taking string representation of color.
color | String representing a color |
ColorWidget::ColorWidget | ( | char | r, | |
char | g, | |||
char | b | |||
) |
Constructor taking an RGB color.
r | The red component | |
g | The green component | |
b | The blue component |