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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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