This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-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版本。

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