Unigine::WidgetSpinBox Class
Interface for widget spinbox handling. See also UnigineScript analog.
To use this class, include the UnigineWidgetSpinBox.h file.
Unigine::WidgetSpinBox Class
Members
static Ptr< WidgetSpinBox > create (const WidgetPtr & widget)
WidgetSpinBox constructor.Arguments
- const WidgetPtr & widget - Widget smart pointer.
static Ptr< WidgetSpinBox > create (const Ptr< Gui > & gui, int min, int max, int value)
WidgetSpinBox constructor.Arguments
- const Ptr< Gui > & gui - Gui pointer.
- int min - Minimal spinbox value.
- int max - Maximum spinbox value. The default is 100.
- int value - Initial value.
virtual void setMinValue (int value) const =0
Sets a minimum value of the spinbox.Arguments
- int value - Minimum spinbox value.
virtual int getMinValue () const =0
Returns a minimum value of the spinbox.Return value
Minimum spinbox value.virtual void setMaxValue (int value) const =0
Sets a maximum value of the spinbox.Arguments
- int value - Maximum spinbox value.
virtual int getMaxValue () const =0
Returns a maximum value of the spinbox.Return value
Maximum spinbox value.virtual void setValue (int value) const =0
Updates the current value of the spinbox.Arguments
- int value - New spinbox value.
virtual int getValue () const =0
Returns the current value of the spinbox.Return value
Current spinbox value.Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)