WidgetSpinBox Class
This class creates a spin box.
WidgetSpinBox Class
This class inherits from WidgetMembers
WidgetSpinBox (Gui gui, int min, int max, int value)
Constructor. Creates a spinbox with given parameters.Arguments
- Gui gui - GUI, to which the spinbox will belong.
- int min - Minimum value.
- int max - Maximum value.
- int value - Initial value.
int getMaxValue ()
Returns a maximum value of the spinbox.Return value
Maximum value.int getMinValue ()
Returns a minimum value of the spinbox.Return value
Minimum valueint getValue ()
Returns a current value of the spinbox.Return value
Current value.void setMaxValue (int max)
Sets a maximum value of the spinbox.Arguments
- int max - Maximum value.
void setMinValue (int min)
Sets a minimum value of the spinbox.Arguments
- int min - Minimum value.
void setValue (int value)
Updates a current value of the spinbox.Arguments
- int value - New value.
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)