ColorWidget Class Reference

Widget that displays a color. More...

#include <colorwidget.h>

List of all members.

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


Detailed Description

Widget that displays a color.

The given color is drawn in a small rectangle area. This widget is intended to provide a preview sample of a color.


Constructor & Destructor Documentation

ColorWidget::ColorWidget ( const Glib::ustring &  color  ) 

Constructor taking string representation of color.

Parameters:
color String representing a color

ColorWidget::ColorWidget ( char  r,
char  g,
char  b 
)

Constructor taking an RGB color.

Parameters:
r The red component
g The green component
b The blue component


The documentation for this class was generated from the following files:
Generated on Fri Feb 22 22:34:18 2008 for Phoenix Wright Case Editor API by  doxygen 1.5.3