nux-1.16.0
|
Public Member Functions | |
RGBValuator (NUX_FILE_LINE_PROTO) | |
RGBValuator (Color const &color, NUX_FILE_LINE_PROTO) | |
RGBValuator (color::Model colorModel, float x, float y, float z, float alpha, NUX_FILE_LINE_PROTO) | |
void | SetColorModel (color::Model cm) |
void | SetColorFormat (color::Format cf) |
Color | GetColor () const |
virtual void | Draw (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | DrawContent (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | PostDraw (GraphicsEngine &GfxContext, bool force_draw) |
void | SetRGB (Color const &color) |
void | SetRGB (float r, float g, float b) |
void | SetAlpha (float alpha) |
void | SetRGBA (Color const &color) |
void | SetRGBA (float r, float g, float b, float a) |
void | SetHSV (float h, float s, float v) |
void | SetHLS (float h, float l, float s) |
void | OnReceiveMouseDown_Red (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseDown_Green (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseDown_Blue (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseDown_Alpha (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseDrag_Red (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseDrag_Green (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseDrag_Blue (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseDrag_Alpha (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
void | OnChangeColorModel () |
void | OnChangeColorFormat () |
void | RecvMouseDownColorModel (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseUp_Red (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseUp_Green (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseUp_Blue (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnComponentInput (EditTextBox *textbox, const NString &s, int componentIndex) |
void | OnChannelKeyboardFocus () |
void | OnChannelLostKeyboardFocus () |
void | OnChannelValidateKeyboardEntry () |
void | OnChannelCharacter (unsigned int character, int componentIndex) |
void | EmitColorChangedSignal () |
Cause the widget to emit sigColorChanged signal. | |
Public Attributes | |
sigc::signal< void, float, float, float, float > | sigColorChanged |
Protected Member Functions | |
void | InitializeWidgets () |
void | InitializeLayout () |
virtual bool | AcceptKeyNavFocus () |
Definition at line 39 of file RGBValuator.h.
nux::RGBValuator::RGBValuator | ( | color::Model | colorModel, |
float | x, | ||
float | y, | ||
float | z, | ||
float | alpha, | ||
NUX_FILE_LINE_PROTO | |||
) |
Create an initialize the widget with the appropriate color model and value.
ColorModel | The color model (CM_RGB, CM_HSV, CM_HLS) |
x | Red if CM_RGB, Hue if CM_HSV, Hue if CM_HLS |
y | Green if CM_RGB, Saturation if CM_HSV, Light if CM_HLS |
z | Blue if CM_RGB, Value if CM_HSV, Saturation if CM_HLS |
alpha |
void nux::RGBValuator::EmitColorChangedSignal | ( | ) |
Cause the widget to emit sigColorChanged signal.
Cause the widget to emit sigColorChanged signal. Useful for initialization of the signal receivers.
Definition at line 1467 of file RGBValuator.cpp.
{ sigColorChanged.emit (rgb_.red, rgb_.green, rgb_.blue, alpha_); }