28 #ifndef _CEGUISpinner_h_
29 #define _CEGUISpinner_h_
31 #include "../CEGUIBase.h"
32 #include "../CEGUIWindow.h"
33 #include "CEGUISpinnerProperties.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
135 void initialiseComponents(
void);
148 double getCurrentValue(
void)
const;
158 double getStepSize(
void)
const;
167 double getMaximumValue(
void)
const;
176 double getMinimumValue(
void)
const;
201 void setCurrentValue(
double value);
214 void setStepSize(
double step);
226 void setMaximumValue(
double maxValue);
238 void setMinimumValue(
double minVaue);
274 virtual double getValueFromText(
void)
const;
283 virtual String getTextFromValue(
void)
const;
298 if (class_name==
"Spinner")
return true;
413 bool handleIncreaseButton(
const EventArgs& e);
414 bool handleDecreaseButton(
const EventArgs& e);
415 bool handleEditTextChange(
const EventArgs& e);
447 void addSpinnerProperties(
void);
452 #if defined(_MSC_VER)
453 # pragma warning(pop)
456 #endif // end of guard _CEGUISpinner_h_
Hexadecimal.
Definition: CEGUISpinner.h:63
double d_maxValue
Maximum value for spinner.
Definition: CEGUISpinner.h:423
static const String EventMaximumValueChanged
Definition: CEGUISpinner.h:89
Property to access the step size of the spinner.
Definition: CEGUISpinnerProperties.h:75
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 h...
Definition: CEGUISpinner.h:296
Property to access the TextInputMode setting.
Definition: CEGUISpinnerProperties.h:152
Property to access the maximum value setting of the spinner.
Definition: CEGUISpinnerProperties.h:123
static const String EditboxNameSuffix
Widget name suffix for the editbox thumb component.
Definition: CEGUISpinner.h:106
static const String OctalValidator
Validator regex used for octal mode.
Definition: CEGUISpinner.h:260
static const String EventValueChanged
Definition: CEGUISpinner.h:77
static const String EventMinimumValueChanged
Definition: CEGUISpinner.h:95
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
double d_minValue
Minimum value for spinner.
Definition: CEGUISpinner.h:424
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 h...
Definition: CEGUIWindow.h:3928
static const String WidgetTypeName
Window factory name.
Definition: CEGUISpinner.h:70
Property to access the current value of the spinner.
Definition: CEGUISpinnerProperties.h:51
Floating point decimal.
Definition: CEGUISpinner.h:61
static const String FloatValidator
Validator regex used for floating point mode.
Definition: CEGUISpinner.h:257
TextInputMode d_inputMode
Current text display/input mode.
Definition: CEGUISpinner.h:425
Base class for the Spinner widget.
Definition: CEGUISpinner.h:52
double d_stepSize
Step size value used y the increase & decrease buttons.
Definition: CEGUISpinner.h:421
Integer decimal.
Definition: CEGUISpinner.h:62
double d_currentValue
Numerical copy of the text in d_editbox.
Definition: CEGUISpinner.h:422
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
static const String DecreaseButtonNameSuffix
Widget name suffix for the decrease button component.
Definition: CEGUISpinner.h:108
Base class for an Editbox widget.
Definition: CEGUIEditbox.h:70
static const String IncreaseButtonNameSuffix
Widget name suffix for the increase button component.
Definition: CEGUISpinner.h:107
Property to access the minimum value setting of the spinner.
Definition: CEGUISpinnerProperties.h:99
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: CEGUIInputEvent.h:245
static const String EventTextInputModeChanged
Definition: CEGUISpinner.h:101
static const String IntegerValidator
Validator regex used for decimal integer mode.
Definition: CEGUISpinner.h:258
static const String EventStepChanged
Definition: CEGUISpinner.h:83
static const String HexValidator
Validator regex used for hexadecimal mode.
Definition: CEGUISpinner.h:259
static const String EventNamespace
Namespace for global events.
Definition: CEGUISpinner.h:71
EventArgs based class that is used for Activated and Deactivated window events.
Definition: CEGUIInputEvent.h:323
TextInputMode
Enumerated type specifying possible input and/or display modes for the spinner.
Definition: CEGUISpinner.h:59
String class used within the GUI system.
Definition: CEGUIString.h:57