nux-0.9.48

nux::RangeValueInteger Class Reference

#include <Nux/RangeValueInteger.h>

Inheritance diagram for nux::RangeValueInteger:
nux::View nux::InputArea nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable nux::RangeValueIntegerPropertyItem

Public Member Functions

 RangeValueInteger (int Value=0, int MinValue=0, int MaxValue=100, NUX_FILE_LINE_PROTO)
 ~RangeValueInteger ()
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 (int min_value, int max_value)
void SetValue (int value)
int GetValue () const
int GetMinValue () const
int 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 BroadcastValue ()

Data Fields

sigc::signal< void,
RangeValueInteger * > 
sigValueChanged
sigc::signal< void, int > sigMouseDown
sigc::signal< void, int > sigMouseUp
sigc::signal< void, int > sigMouseDrag
sigc::signal< void, int > sigSetTypedValue
sigc::signal< void, int > sigValueChanged2

Protected Member Functions

void InitializeWidgets ()
void InitializeLayout ()
void DestroyLayout ()

Protected Attributes

HLayouthlayout
EditTextBoxm_ValueString
InputAream_Percentage
Color m_StartColor
Color m_EndColor
Color m_ProgressColor
Color m_BackgroundColor
bool m_EnableDrawProgress
long m_CTRL_KEY
float m_MarkerPosition
int m_Value
int m_min
int m_max

Constructor & Destructor Documentation

nux::RangeValueInteger::RangeValueInteger ( int  Value = 0,
int  MinValue = 0,
int  MaxValue = 100,
NUX_FILE_LINE_PROTO   
)
nux::RangeValueInteger::~RangeValueInteger ( )

Member Function Documentation

void nux::RangeValueInteger::BroadcastValue ( )
void nux::RangeValueInteger::DestroyLayout ( ) [protected]

Reimplemented from nux::View.

virtual void nux::RangeValueInteger::Draw ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Implements nux::View.

virtual void nux::RangeValueInteger::DrawContent ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::View.

void nux::RangeValueInteger::DrawMarker ( GraphicsEngine GfxContext)
void nux::RangeValueInteger::EnableDrawProgress ( bool  b) [inline]

References m_EnableDrawProgress.

const Color nux::RangeValueInteger::GetBackgroundColor ( ) const [inline]
int nux::RangeValueInteger::GetMaxValue ( ) const [inline]

References m_max.

int nux::RangeValueInteger::GetMinValue ( ) const [inline]

References m_min.

int nux::RangeValueInteger::GetValue ( ) const
void nux::RangeValueInteger::InitializeLayout ( ) [protected]

Reimplemented from nux::View.

void nux::RangeValueInteger::InitializeWidgets ( ) [protected]

Reimplemented from nux::View.

bool nux::RangeValueInteger::IsCtrlKeyPressed ( ) const [inline]

References m_CTRL_KEY.

void nux::RangeValueInteger::OnKeyboardFocus ( )
void nux::RangeValueInteger::OnLostKeyboardFocus ( )
void nux::RangeValueInteger::OnReceiveMouseDown ( int  x,
int  y,
unsigned long  button_flags,
unsigned long  key_flags 
)
void nux::RangeValueInteger::OnReceiveMouseDrag ( int  x,
int  y,
int  dx,
int  dy,
unsigned long  button_flags,
unsigned long  key_flags 
)
void nux::RangeValueInteger::OnReceiveMouseUp ( int  x,
int  y,
unsigned long  button_flags,
unsigned long  key_flags 
)
void nux::RangeValueInteger::OnValidateKeyboardEntry ( EditTextBox textbox,
const NString text 
)
virtual void nux::RangeValueInteger::PostDraw ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::View.

virtual long nux::RangeValueInteger::ProcessEvent ( IEvent ievent,
long  TraverseInfo,
long  ProcessEventInfo 
) [virtual]

Implements nux::View.

void nux::RangeValueInteger::SetBackgroundColor ( const Color color) [inline]
void nux::RangeValueInteger::setEndColor ( Color  color) [inline]

References m_EndColor.

void nux::RangeValueInteger::setProgressColor ( Color  color) [inline]

References m_ProgressColor.

void nux::RangeValueInteger::SetRange ( int  min_value,
int  max_value 
)
void nux::RangeValueInteger::setStartColor ( Color  color) [inline]

References m_StartColor.

void nux::RangeValueInteger::setStartToEndColor ( Color  color_start,
Color  color_end 
) [inline]

References m_EndColor, and m_StartColor.

void nux::RangeValueInteger::SetValue ( int  value)

Field Documentation

Referenced by IsCtrlKeyPressed().

Referenced by GetMaxValue().

Referenced by GetMinValue().

sigc::signal<void, int> nux::RangeValueInteger::sigMouseDown
sigc::signal<void, int> nux::RangeValueInteger::sigMouseDrag
sigc::signal<void, int> nux::RangeValueInteger::sigMouseUp

The documentation for this class was generated from the following file: