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 199 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 Sat Mar 26 07:08:37 2011 for GG by  doxygen 1.5.9