This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

WidgetSpinBox Class

This class creates a spin box.

WidgetSpinBox Class

This class inherits from Widget

Members


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 value

int 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
Build: ()