This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Physics-Related Classes
Bounds-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

WidgetSpinBox Class

Interface for widget spinbox handling. See also UnigineScript analog.

To use this class, include the UnigineWidgetSpinBox.h file.

WidgetSpinBox Class

Members


WidgetSpinBox (const Ptr<Gui> & gui, int min = 0, int max = 100, int value = 0)

Constructor. Creates a spinbox with given parameters.

Arguments

  • const Ptr<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 spinbox value.

int type ()

WidgetSpinBox type.

Return value

WidgetSpinBox type identifier.

void setMaxExpand (int expand)

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

Arguments

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

int getMinExpand ()

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 Gui::ATTACH_MIN_EXPAND flag.

Return value

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

int getMinValue ()

Returns a minimum value of the spinbox.

Return value

Minimum spinbox value.

Ptr<WidgetSpinBox> create (const Ptr<Widget> & widget)

WidgetSpinBox constructor.

Arguments

  • const Ptr<Widget> & widget - Widget smart pointer.

Return value

void setValue (int value)

Updates the current value of the spinbox.

Arguments

  • int value - New spinbox value.

int getMaxExpand ()

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 Gui::ATTACH_MAX_EXPAND flag.

Return value

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

void setMaxValue (int value)

Sets a maximum value of the spinbox.

Arguments

  • int value - Maximum spinbox value.

int getValue ()

Returns the current value of the spinbox.

Return value

Current spinbox value.

void setMinValue (int value)

Sets a minimum value of the spinbox.

Arguments

  • int value - Minimum spinbox value.

void setMinExpand (int expand)

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

Arguments

  • int expand - Minimum value, up to which the spinbox lower limit can be dropped.
Last update: 03.07.2017
Build: ()