This page has been translated automatically.
Programming
Fundamentals
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
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
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.

WidgetSpinBox Class

Inherits:Widget

This class creates a spin box.

WidgetSpinBox Class

Members


static WidgetSpinBox(Gui gui, int min = 0, int max = 100, int value = 0)

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.

WidgetSpinBox cast(Widget widget)

Arguments

  • Widget widget

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

Returns the current maximum value, up to which the upper limit of the range of the spinbox values can be expanded.
Notice
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.
See also the setMaxExpand() function.

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

int getMaxValue()

Returns a maximum value of the spinbox.
Notice
The value returned by this function may differ from the value set via setMaxValue(). See The setMaxExpand() function for more details.

Return value

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

int getMinExpand()

Returns the current minimum value, up to which the lower limit of the range of the spinbox values can be dropped.
Notice
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.
See also the setMinExpand() function.

Return value

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

void setMinValue(int value)

Sets a minimum value of the spinbox.

Arguments

  • int value - Minimum value.

int getMinValue()

Returns a minimum value of the spinbox.
Notice
The value returned by this function may differ from the value set via setMinValue(). See The setMinExpand() function for more details.

Return value

Minimum value

void setValue(int value)

Updates a current value of the spinbox.

Arguments

  • int value - New value.

int getValue()

Returns a current value of the spinbox.

Return value

Current value.

int type()

WidgetSpinBox type.

Return value

WidgetSpinBox type identifier.
Last update: 2017-07-03
Build: ()