43 #include "UI/pageprovider.h"
44 #include "UI/widgetfactory.h"
45 #include "UI/uienumerations.h"
171 virtual void ClampToLimits(
Real& Value);
213 virtual const String& GetTypeName()
const;
220 virtual void SetSpinValue(
Real Value);
223 virtual Real GetSpinValue()
const;
226 virtual void SetIncrementValue(
const Real Value);
229 virtual Real GetIncrementValue()
const;
235 virtual void SetSpinValueLimits(
const Real Min,
const Real Max);
238 virtual void SetMinSpinValue(
const Real Value);
241 virtual Real GetMinSpinValue()
const;
244 virtual void SetMaxSpinValue(
const Real Value);
247 virtual Real GetMaxSpinValue()
const;
266 virtual Button* GetIncrement()
const;
269 virtual Button* GetDecrement()
const;
272 virtual EditBox* GetValueDisplay()
const;
278 virtual Real GetMaxXPages()
const;
280 virtual Real GetMaxYPages()
const;
283 virtual Real GetCurrentXPage()
const;
285 virtual Real GetCurrentYPage()
const;
291 virtual void ProtoSerializeProperties(
XML::Node& SelfRoot)
const;
293 virtual void ProtoDeSerializeProperties(
const XML::Node& SelfRoot);
296 static String GetSerializableName();
304 virtual void _OnSpinValueChanged(
const Real OldValue,
const Real NewValue);
312 virtual void _NotifyContainerUpdated();
328 virtual String GetWidgetTypeName()
const;
375 virtual void DestroyWidget(
Widget* ToBeDestroyed);
const Real NewSpinValue
The post-update value of the calling Spinner.
Button * DecrementSpin
A pointer to the button that will decrement the spin value.
This class represents a collection of Glyphs in a common visual style.
virtual ~SpinnerValueChangedArguments()
Class destructor.
static const String EventSpinValueChanged
Event name for when the value in this Spinner is updated.
UI::OrderingPriority OrderPriority
Which axis is primary when determining the current X or Y page.
SpinnerStyle
Used by the spinner class to determine what styling should be used for the spinner.
virtual ~SpinnerFactory()
Class destructor.
A simple reference counting pointer.
CountedPtr< SpinnerValueChangedArguments > SpinnerValueChangedArgumentsPtr
Convenience typedef for passing around SpinnerValueChangedArguments.
virtual SpinnerValueChangedArguments * GetMostDerived()
Get a pointer to the most Derived type of this instance.
OrderingPriority
Used by container widgets to determine which axis is considered primary for children/pages.
This is a simple widget for a numeric variable in a box.
static RefCountType * ConstructionPointer(RefCountType *Target)
Method responsible for creating a reference count for a CountedPtr of the templated type...
float Real
A Datatype used to represent a real floating point number.
EditBox * ValueDisplay
A pointer to the EditBox that will display the spin value.
This class represents a 2D rect which can express the size and position of a renderable on screen...
This is used to deduce at compile if a specific class has built-in reference counting or needs an ext...
A light-weight handle for manipulating nodes in DOM tree.
Real MinValue
The minimum value allowed to be expressed by this Spinner.
Button * IncrementSpin
A pointer to the button that will increment the spin value.
This is the EventArguments class for when the spinvalue of a Spinner is updated.
A static cast from the pointer as provided with no attempt to calls functions on the pointer target...
UI::SpinnerValueChangedArguments RefCountType
Typedef communicating the reference count type to be used.
This is the factory implementation for Spinner widgets.
This is the base class for interpretting widget values to page positions.
SpinnerFactory()
Class constructor.
The bulk of the engine components go in this namspace.
Real SpinValue
The current spin value of this Spinner.
Real MaxValue
The maximum value allowed to be expressed by this Spinner.
Real IncrementValue
The amount to increase or decrease by when the spin value is altered via buttons. ...
static const String TypeName
String containing the type name for this class: "Spinner".
std::map< String, String > NameValuePairMap
This is a datatype mostly used for describing settings or parameters that can't be declared in advanc...
This class is a helper class for creating UI's. It is responsible for storing and keeping track of al...
std::string String
A datatype used to a series of characters.
SpinnerValueChangedArguments(const String &Name, const String &Source, const Real &OldValue, const Real &NewValue)
Class constructor.
const Real OldSpinValue
The pre-update value of the calling Spinner.
Widget for handling the input and manipulation of text.