nux-1.14.0
|
Public Types | |
enum | ColorMode { COLORMODE_GRADIENT = 0, COLORMODE_HUE } |
Public Member Functions | |
ColorGradient (float Value=0, float MinValue=0.0f, float MaxValue=1.0f, NUX_FILE_LINE_PROTO) | |
virtual long | ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo) |
void | DrawMarker (GraphicsEngine &GfxContext) |
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 | SetRange (float min_value, float max_value) |
void | SetValue (float value) |
float | GetValue () const |
float | GetMinValue () const |
float | GetMaxValue () const |
void | SetBackgroundColor (const Color &color) |
const Color | GetBackgroundColor () const |
void | OnReceiveMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnReceiveMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
void | OnKeyboardFocus () |
void | OnLostKeyboardFocus () |
void | OnValidateKeyboardEntry (EditTextBox *textbox, const NString &text) |
bool | IsCtrlKeyPressed () const |
void | EmitFloatChangedSignal () |
void | Reset () |
int | GetNumColorMark () const |
ColorMarkGroup::ColorMark | GetColorMark (int i) const |
void | AddColorMark (DOUBLE x, Color color, bool selected=false) |
void | SetColorFormat (color::Format cf) |
Public Attributes | |
sigc::signal< void, ColorGradient * > | sigValueChanged |
sigc::signal< void, float > | sigFloatChanged |
sigc::signal< void, float > | sigMouseDown |
sigc::signal< void, float > | sigMouseUp |
sigc::signal< void, float > | sigMouseDrag |
sigc::signal< void, float > | sigSetTypedValue |
Protected Member Functions | |
void | InitializeWidgets () |
void | InitializeLayout () |
Protected Attributes | |
ColorMarkGroup | m_ColorMarkGroup |
HLayout * | hlayout |
EditTextBox * | m_ValueString |
InputArea * | m_Percentage |
Color | m_BackgroundColor |
color::Format | m_color_format |
long | m_CTRL_KEY |
float | m_Value |
float | m_min |
float | m_max |
HexRegExpValidator | m_HexRegExp |
IntegerValidator | m_IntRegExp |
DoubleValidator | m_DoubleRegExp |
Definition at line 315 of file ColorGradient.h.