GG

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)
 ColorDisplay ()

Accessors

virtual void Render ()

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.


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: