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
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.

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