#include <wg_range_control.h>
Inheritance diagram for wGui::CRangeControl< T >:
Definition at line 39 of file wg_range_control.h.
wGui::CRangeControl< T >::CRangeControl | ( | const CRect & | WindowRect, | |
CWindow * | pParent, | |||
T | minLimit, | |||
T | maxLimit, | |||
T | stepSize, | |||
T | defaultValue | |||
) | [inline] |
Constructs a range control
WindowRect | A CRect that defines the outer limits of the control | |
pParent | A pointer to the parent window | |
minLimit | The minimum limit for the control | |
maxLimit | The maximum limit for the control | |
stepSize | The amount to increase/decrease the value by for Increment and Decrement | |
defaultValue | The amount to initialize the value to |
Definition at line 49 of file wg_range_control.h.
virtual void wGui::CRangeControl< T >::SetMinLimit | ( | T | minLimit | ) | [inline, virtual] |
Set the lower limit for the control
minLimit | The lower limit of the control |
Definition at line 54 of file wg_range_control.h.
virtual T wGui::CRangeControl< T >::GetMinLimit | ( | void | ) | const [inline, virtual] |
Gets the lower limit of the control
Definition at line 58 of file wg_range_control.h.
virtual void wGui::CRangeControl< T >::SetMaxLimit | ( | T | maxLimit | ) | [inline, virtual] |
Set the upper limit for the control
maxLimit | The upper limit of the control |
Definition at line 62 of file wg_range_control.h.
Referenced by wGui::CListBox::AddItem(), wGui::CListBox::ClearItems(), wGui::CListBox::CListBox(), wGui::CListBox::RemoveItem(), and wGui::CTextBox::UpdateScrollBars().
virtual T wGui::CRangeControl< T >::GetMaxLimit | ( | void | ) | const [inline, virtual] |
Gets teh upper limit of the control
Definition at line 66 of file wg_range_control.h.
virtual void wGui::CRangeControl< T >::SetStepSize | ( | T | stepSize | ) | [inline, virtual] |
Set the current step size.
stepSize | The amount to increment the value by for Increment() and Decrement() calls |
Definition at line 70 of file wg_range_control.h.
virtual T wGui::CRangeControl< T >::GetStepSize | ( | void | ) | const [inline, virtual] |
Gets the current step size of the control
Definition at line 74 of file wg_range_control.h.
virtual void wGui::CRangeControl< T >::SetValue | ( | T | value, | |
bool | bRedraw = true | |||
) | [inline, virtual] |
Set the current value.
value | The new value for the control | |
bRedraw | indicates if the control should be redrawn (defaults to true) |
Reimplemented in wGui::CScrollBar.
Definition at line 79 of file wg_range_control.h.
Referenced by wGui::CRangeControl< int >::Decrement(), and wGui::CRangeControl< int >::Increment().
virtual T wGui::CRangeControl< T >::GetValue | ( | void | ) | const [inline, virtual] |
Gets the current value of the control
Definition at line 92 of file wg_range_control.h.
Referenced by wGui::CTextBox::Draw(), wGui::CListBox::Draw(), wGui::CTextBox::HandleMessage(), wGui::CListBox::HandleMessage(), wGui::CTextBox::OnMouseButtonDown(), wGui::CListBox::OnMouseButtonDown(), wGui::CListBox::OnMouseButtonUp(), and wGui::CTextBox::UpdateScrollBars().
virtual void wGui::CRangeControl< T >::Increment | ( | bool | bRedraw = true |
) | [inline, virtual] |
Increase the value by one step size
bRedraw | indicates if the control should be redrawn (defaults to true) |
Definition at line 96 of file wg_range_control.h.
virtual void wGui::CRangeControl< T >::Decrement | ( | bool | bRedraw = true |
) | [inline, virtual] |
Decrease the value by one step size
bRedraw | indicates if the control should be redrawn (defaults to true) |
Definition at line 100 of file wg_range_control.h.
virtual T wGui::CRangeControl< T >::ConstrainValue | ( | T | value | ) | const [inline, virtual] |
takes the value and makes sure it's in it's limits
value | The value to be checked |
Definition at line 105 of file wg_range_control.h.
Referenced by wGui::CRangeControl< int >::SetValue().