Inheritance diagram for CEGUI::Spinner:
Public Types | |
enum | TextInputMode { FloatingPoint, Integer, Hexadecimal, Octal } |
Enumerated type specifying possible input and/or display modes for the spinner. More... | |
Public Member Functions | |
Spinner (const String &type, const String &name) | |
Constructor for Spinner objects. | |
virtual | ~Spinner (void) |
Destructor for Spinner objects. | |
void | initialise (void) |
Initialises the Window based object ready for use. | |
float | getCurrentValue (void) const |
Return the current spinner value. | |
float | getStepSize (void) const |
Return the current step value. | |
float | getMaximumValue (void) const |
Return the current maximum limit value for the Spinner. | |
float | getMinimumValue (void) const |
Return the current minimum limit value for the Spinner. | |
TextInputMode | getTextInputMode (void) const |
Return the current text input / display mode setting. | |
void | setCurrentValue (float value) |
Set the current spinner value. | |
void | setStepSize (float step) |
Set the current step value. | |
void | setMaximumValue (float maxValue) |
Set the spinner maximum value. | |
void | setMinimumValue (float minVaue) |
Set the spinner minimum value. | |
void | setTextInputMode (TextInputMode mode) |
Set the spinner input / display mode. | |
Static Public Attributes | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventValueChanged |
Event fired when the spinner value changes. | |
static const String | EventStepChanged |
Event fired when the step value changes. | |
static const String | EventMaximumValueChanged |
Event fired when the maximum spinner value changes. | |
static const String | EventMinimumValueChanged |
Event fired when the minimum spinner value changes. | |
static const String | EventTextInputModeChanged |
Event fired when the input/display mode is changed. | |
Protected Member Functions | |
void | addSpinnerEvents (void) |
Adds events specific to the Spinner base class. | |
virtual float | getValueFromText (void) const |
Returns the numerical representation of the current editbox text. | |
virtual String | getTextFromValue (void) const |
Returns the textual representation of the current spinner value. | |
virtual bool | testClassName_impl (const String &class_name) const |
Return whether this window was inherited from the given class name at some point in the inheritance heirarchy. | |
virtual PushButton * | createIncreaseButton (const String &name) const =0 |
Creates a PushButton based widget that will be used for the increase button component of the Spinner widget. | |
virtual PushButton * | createDecreaseButton (const String &name) const =0 |
Creates a PushButton based widget that will be used for the decrease button component of the Spinner widget. | |
virtual Editbox * | createEditbox (const String &name) const =0 |
Creates an Editbox based widget that will be used for the text input area of the spinner widget. | |
virtual void | onFontChanged (WindowEventArgs &e) |
Handler called when the window's font is changed. | |
virtual void | onTextChanged (WindowEventArgs &e) |
Handler called when the window's text is changed. | |
virtual void | onActivated (ActivationEventArgs &e) |
Handler called when this window has become the active window. | |
virtual void | onValueChanged (WindowEventArgs &e) |
Method called when the spinner value changes. | |
virtual void | onStepChanged (WindowEventArgs &e) |
Method called when the step value changes. | |
virtual void | onMaximumValueChanged (WindowEventArgs &e) |
Method called when the maximum value setting changes. | |
virtual void | onMinimumValueChanged (WindowEventArgs &e) |
Method called when the minimum value setting changes. | |
virtual void | onTextInputModeChanged (WindowEventArgs &e) |
Method called when the text input/display mode is changed. | |
bool | handleIncreaseButton (const EventArgs &e) |
bool | handleDecreaseButton (const EventArgs &e) |
bool | handleEditTextChange (const EventArgs &e) |
Protected Attributes | |
PushButton * | d_increaseButton |
Pointer to the increase button widget. | |
PushButton * | d_decreaseButton |
Pointer to the decrease button widget. | |
Editbox * | d_editbox |
Pointer to the editbox widget. | |
float | d_stepSize |
Step size value used y the increase & decrease buttons. | |
float | d_currentValue |
Numerical copy of the text in d_editbox. | |
float | d_maxValue |
Maximum value for spinner. | |
float | d_minValue |
Minimum value for spinner. | |
TextInputMode | d_inputMode |
Current text display/input mode. | |
Static Protected Attributes | |
static const String | FloatValidator |
Validator regex used for floating point mode. | |
static const String | IntegerValidator |
Validator regex used for decimal integer mode. | |
static const String | HexValidator |
Validator regex used for hexadecimal mode. | |
static const String | OctalValidator |
Validator regex used for octal mode. |
The spinner widget has a text area where numbers may be entered and two buttons which may be used to increase or decrease the value in the text area by a user specified amount.
|
Enumerated type specifying possible input and/or display modes for the spinner.
|
|
Adds events specific to the Spinner base class.
|
|
Creates a PushButton based widget that will be used for the decrease button component of the Spinner widget.
|
|
Creates an Editbox based widget that will be used for the text input area of the spinner widget.
|
|
Creates a PushButton based widget that will be used for the increase button component of the Spinner widget.
|
|
Return the current spinner value.
|
|
Return the current maximum limit value for the Spinner.
|
|
Return the current minimum limit value for the Spinner.
|
|
Return the current step value.
|
|
Returns the textual representation of the current spinner value.
|
|
Return the current text input / display mode setting.
|
|
Returns the numerical representation of the current editbox text.
|
|
Initialises the Window based object ready for use.
Reimplemented from CEGUI::Window. |
|
Handler called when this window has become the active window.
Reimplemented from CEGUI::Window. |
|
Handler called when the window's font is changed.
Reimplemented from CEGUI::Window. |
|
Method called when the maximum value setting changes.
|
|
Method called when the minimum value setting changes.
|
|
Method called when the step value changes.
|
|
Handler called when the window's text is changed.
Reimplemented from CEGUI::Window. |
|
Method called when the text input/display mode is changed.
|
|
Method called when the spinner value changes.
|
|
Set the current spinner value.
|
|
Set the spinner maximum value.
|
|
Set the spinner minimum value.
|
|
Set the current step value.
|
|
Set the spinner input / display mode.
|
|
Return whether this window was inherited from the given class name at some point in the inheritance heirarchy.
Reimplemented from CEGUI::Window. |