|
nux-1.14.0
|
Public Member Functions | |
| ColorRangeValuator (float value=0.0f, Color StartColor=Color(0xFFFFFFFF), Color EndColor=Color(0x00000000)) | |
| virtual void | Draw (GraphicsEngine &GfxContext, bool force_draw) |
| Color | GetColor () const |
| Get the interpolated color. | |
Protected Member Functions | |
| void | InitializeWidgets () |
| void | InitializeLayout () |
Definition at line 29 of file ColorRangeValuator.h.
| Color nux::ColorRangeValuator::GetColor | ( | ) | const |
Get the interpolated color.
Definition at line 55 of file ColorRangeValuator.cpp.
{
return m_Value * m_EndColor + (1.0f - m_Value) * m_StartColor;
}