This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
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
CIGI Client Plugin
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::WidgetSpinBox Class

Header: #include <UnigineWidgets.h>
Inherits: Widget

This class creates a spin box.

WidgetSpinBox Class

Members


static WidgetSpinBoxPtr create ( 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.

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

Casts a WidgetSpinBox out of the Widget instance.

Arguments

  • const Ptr<Widget> & widget - Pointer to Widget.

Return value

Pointer to WidgetSpinBox.

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. 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 getMaxValue( )

Returns a maximum value of the spinbox.

Return value

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

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.

void setMinValue( int value )

Sets a minimum value of the spinbox.

Arguments

  • int value - Minimum spinbox value.

int getMinValue( )

Returns a minimum value of the spinbox.

Return value

Minimum spinbox value.

void setValue( int value )

Updates the current value of the spinbox.

Arguments

  • int value - New spinbox value.

int getValue( )

Returns the current value of the spinbox.

Return value

Current spinbox value.

int type( )

WidgetSpinBox type.

Return value

WidgetSpinBox type identifier.
Last update: 2020-01-14
Build: ()