nux-0.9.48
|
#include <Nux/RangeValue.h>
Public Member Functions | |
RangeValue (float Value=0, float MinValue=0.0f, float MaxValue=1.0f, NUX_FILE_LINE_PROTO) | |
virtual | ~RangeValue () |
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 | setStartToEndColor (Color color_start, Color color_end) |
void | setStartColor (Color color) |
void | setEndColor (Color color) |
void | setProgressColor (Color color) |
void | EnableDrawProgress (bool b) |
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 () |
Data Fields | |
sigc::signal< void, RangeValue * > | 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 () |
void | DestroyLayout () |
Protected Attributes | |
HLayout * | hlayout |
EditTextBox * | m_ValueString |
InputArea * | m_Percentage |
Color | m_StartColor |
Color | m_EndColor |
Color | m_ProgressColor |
Color | m_BackgroundColor |
bool | m_EnableDrawProgress |
long | m_CTRL_KEY |
float | m_Value |
float | m_min |
float | m_max |
nux::RangeValue::RangeValue | ( | float | Value = 0 , |
float | MinValue = 0.0f , |
||
float | MaxValue = 1.0f , |
||
NUX_FILE_LINE_PROTO | |||
) |
virtual nux::RangeValue::~RangeValue | ( | ) | [virtual] |
void nux::RangeValue::DestroyLayout | ( | ) | [protected] |
Reimplemented from nux::View.
Reimplemented in nux::ColorRangeValuator, and nux::HueRangeValuator.
virtual void nux::RangeValue::Draw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Implements nux::View.
Reimplemented in nux::ColorRangeValuator, and nux::HueRangeValuator.
virtual void nux::RangeValue::DrawContent | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Reimplemented from nux::View.
void nux::RangeValue::DrawMarker | ( | GraphicsEngine & | GfxContext | ) |
void nux::RangeValue::EmitFloatChangedSignal | ( | ) |
void nux::RangeValue::EnableDrawProgress | ( | bool | b | ) | [inline] |
References m_EnableDrawProgress.
const Color nux::RangeValue::GetBackgroundColor | ( | ) | const |
float nux::RangeValue::GetMaxValue | ( | ) | const [inline] |
References m_max.
float nux::RangeValue::GetMinValue | ( | ) | const [inline] |
References m_min.
float nux::RangeValue::GetValue | ( | ) | const |
void nux::RangeValue::InitializeLayout | ( | ) | [protected] |
Reimplemented from nux::View.
Reimplemented in nux::ColorRangeValuator, and nux::HueRangeValuator.
void nux::RangeValue::InitializeWidgets | ( | ) | [protected] |
Reimplemented from nux::View.
Reimplemented in nux::ColorRangeValuator, and nux::HueRangeValuator.
bool nux::RangeValue::IsCtrlKeyPressed | ( | ) | const [inline] |
References m_CTRL_KEY.
void nux::RangeValue::OnKeyboardFocus | ( | ) |
void nux::RangeValue::OnLostKeyboardFocus | ( | ) |
void nux::RangeValue::OnReceiveMouseDown | ( | int | x, |
int | y, | ||
unsigned long | button_flags, | ||
unsigned long | key_flags | ||
) |
void nux::RangeValue::OnReceiveMouseDrag | ( | int | x, |
int | y, | ||
int | dx, | ||
int | dy, | ||
unsigned long | button_flags, | ||
unsigned long | key_flags | ||
) |
void nux::RangeValue::OnReceiveMouseUp | ( | int | x, |
int | y, | ||
unsigned long | button_flags, | ||
unsigned long | key_flags | ||
) |
void nux::RangeValue::OnValidateKeyboardEntry | ( | EditTextBox * | textbox, |
const NString & | text | ||
) |
virtual void nux::RangeValue::PostDraw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Reimplemented from nux::View.
virtual long nux::RangeValue::ProcessEvent | ( | IEvent & | ievent, |
long | TraverseInfo, | ||
long | ProcessEventInfo | ||
) | [virtual] |
Implements nux::View.
void nux::RangeValue::SetBackgroundColor | ( | const Color & | color | ) |
void nux::RangeValue::setEndColor | ( | Color | color | ) | [inline] |
References m_EndColor.
void nux::RangeValue::setProgressColor | ( | Color | color | ) | [inline] |
References m_ProgressColor.
void nux::RangeValue::SetRange | ( | float | min_value, |
float | max_value | ||
) |
void nux::RangeValue::setStartColor | ( | Color | color | ) | [inline] |
References m_StartColor.
References m_EndColor, and m_StartColor.
void nux::RangeValue::SetValue | ( | float | value | ) |
HLayout* nux::RangeValue::hlayout [protected] |
Color nux::RangeValue::m_BackgroundColor [protected] |
long nux::RangeValue::m_CTRL_KEY [protected] |
Referenced by IsCtrlKeyPressed().
bool nux::RangeValue::m_EnableDrawProgress [protected] |
Referenced by EnableDrawProgress().
Color nux::RangeValue::m_EndColor [protected] |
Referenced by setEndColor(), and setStartToEndColor().
float nux::RangeValue::m_max [protected] |
Referenced by GetMaxValue().
float nux::RangeValue::m_min [protected] |
Referenced by GetMinValue().
InputArea* nux::RangeValue::m_Percentage [protected] |
Color nux::RangeValue::m_ProgressColor [protected] |
Referenced by setProgressColor().
Color nux::RangeValue::m_StartColor [protected] |
Referenced by setStartColor(), and setStartToEndColor().
float nux::RangeValue::m_Value [protected] |
EditTextBox* nux::RangeValue::m_ValueString [protected] |
sigc::signal<void, float> nux::RangeValue::sigFloatChanged |
sigc::signal<void, float> nux::RangeValue::sigMouseDown |
sigc::signal<void, float> nux::RangeValue::sigMouseDrag |
sigc::signal<void, float> nux::RangeValue::sigMouseUp |
sigc::signal<void, float> nux::RangeValue::sigSetTypedValue |
sigc::signal<void, RangeValue *> nux::RangeValue::sigValueChanged |