This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии 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 int type ()

WidgetSpinBox type.

Return value

WidgetSpinBox type identifier.

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 setMinExpand (int value) const =0

Sets the minimum value, up to which the lower limit of the range of the spinbox values can be expanded.

Arguments

  • int value - Minimum value, up to which the spinbox lower limit can be dropped.

virtual int getMinExpand () const =0

Returns the current minimum value, up to which the lower limit of the range of the spinbox values can be expanded. The lower limit of the spinbox can be expanded only if the spinbox is attached to an editline with the Unigine::Gui::ATTACH_MIN_EXPAND flag.

Return value

Minimum value, up to which the spinbox lower limit can be dropped.

virtual void setMaxExpand (int value) const =0

Sets the maximum value, up to which the upper limit of the range of the spinbox values can be expanded.

Arguments

  • int value - Maximum value, up to which the spinbox upper limit can be raised.

virtual int getMaxExpand () const =0

Returns the current maximum value, up to which the upper limit of the range of the spinbox values can be expanded. The upper limit of the spinbox can be expanded only if the spinbox is attached to an editline with the Unigine::Gui::ATTACH_MAX_EXPAND flag.

Return value

Maximum value, up to which the spinbox upper limit can be raised.

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