GG
|
A control specifically designed for ColorDlg that allows the user to select a point in the Value subspace of the HSV color space. More...
#include <ColorDlg.h>
Public Attributes | |
ChangedSignalType | ChangedSignal |
Signal Types | |
typedef boost::signal< void(double)> | ChangedSignalType |
Structors | |
ValuePicker (X x, Y y, X w, Y h, Clr arrow_color) | |
ValuePicker () | |
Mutators | |
virtual void | Render () |
virtual void | LButtonDown (const Pt &pt, Flags< ModKey > mod_keys) |
virtual void | LDrag (const Pt &pt, const Pt &move, Flags< ModKey > mod_keys) |
void | SetHueSaturation (double hue, double saturation) |
void | SetValue (double value) |
A control specifically designed for ColorDlg that allows the user to select a point in the Value subspace of the HSV color space.
Definition at line 102 of file ColorDlg.h.
virtual void GG::ValuePicker::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.
Respond to left button down msg. A window receives this whenever any input device button changes from up to down while over the window.
Reimplemented from GG::Wnd.
virtual void GG::ValuePicker::LDrag | ( | const Pt & | pt, |
const Pt & | move, | ||
Flags< ModKey > | mod_keys | ||
) | [virtual] |
Respond to left button drag msg (even if this Wnd is not dragable). Drag messages are only sent to the window over which the button was pressed at the beginning of the drag. A window receives this whenever any input device button is down and the cursor is moving while over the window. The window will also receive drag messages when the mouse is being dragged outside the window's area.
Reimplemented from GG::Wnd.
void GG::ValuePicker::SetHueSaturation | ( | double | hue, |
double | saturation | ||
) |
Sets the current hue and saturation. These are only used to render the control, and do not otherwise influence its operation.