GG::ColorDlg::ColorDisplay Class Reference

a simple control that only displays a rectangle filled with the given color. More...

#include <ColorDlg.h>

Inheritance diagram for GG::ColorDlg::ColorDisplay:

GG::Control GG::Wnd List of all members.

Structors

 ColorDisplay (Clr color)

Accessors

virtual void Render ()

Structors

 ColorDisplay ()

Detailed Description

a simple control that only displays a rectangle filled with the given color.

The color is shown in full alpha in the upper-left portion of the rectangle, and the color is shown in its given alpha in the lower-left of the rectangle.

Definition at line 198 of file ColorDlg.h.


Constructor & Destructor Documentation

GG::ColorDlg::ColorDisplay::ColorDisplay ( Clr  color  ) 

ctor.

GG::ColorDlg::ColorDisplay::ColorDisplay (  )  [protected]

default ctor


Member Function Documentation

virtual void GG::ColorDlg::ColorDisplay::Render (  )  [virtual]

draws this Wnd.

Note that Wnds being dragged for a drag-and-drop operation are rendered twice -- once in-place as normal, once in the location of the drag operation, attached to the cursor. Such Wnds may wish to render themselves differently in those two cases. To determine which render is being performed, they can call GUI::GetGUI()->RenderingDragDropWnds().

Implements GG::Control.


The documentation for this class was generated from the following file:
Generated on Wed Mar 26 14:35:42 2008 for GG by  doxygen 1.5.2