nux-1.16.0
nux::ColorRangeValuator Class Reference
Inheritance diagram for nux::ColorRangeValuator:
nux::RangeValue nux::View nux::InputArea nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable nux::Introspectable

List of all members.

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

Detailed Description

Definition at line 29 of file ColorRangeValuator.h.


Member Function Documentation

Color nux::ColorRangeValuator::GetColor ( ) const

Get the interpolated color.

Returns:
The interpolated color.

Definition at line 55 of file ColorRangeValuator.cpp.

  {
    return m_Value * m_EndColor + (1.0f - m_Value) * m_StartColor;
  }

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