nux-1.14.0
nux::RGBValuator Class Reference
Inheritance diagram for nux::RGBValuator:
nux::View nux::InputArea nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable nux::Introspectable

List of all members.

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

Detailed Description

Definition at line 39 of file RGBValuator.h.


Constructor & Destructor Documentation

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.

Parameters:
ColorModelThe color model (CM_RGB, CM_HSV, CM_HLS)
xRed if CM_RGB, Hue if CM_HSV, Hue if CM_HLS
yGreen if CM_RGB, Saturation if CM_HSV, Light if CM_HLS
zBlue if CM_RGB, Value if CM_HSV, Saturation if CM_HLS
alpha

Member Function Documentation

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_);
  }

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends