This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm (Experimental)
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine.WidgetSlider Class

Inherits: Widget

This class creates a slider: horizontal or vertical one.

WidgetSlider Class

Properties

int Value#

The current value of the slider, i.e. its position.
set
Sets a new current value for the slider, i.e. its position.
set value - Slider value.

int MaxExpand#

The current maximum value, up to which the upper limit of the range of the slider values can be expanded. the upper limit of the slider can be expanded only if the slider is attached to an editline with the Gui::ATTACH_MAX_EXPAND flag.
set
Sets the maximum value, up to which the upper limit of the range of the slider values can be expanded.
set value - Maximum value, up to which the slider's upper limit can be raised.

int MinExpand#

The minimum value, up to which the lower limit of the range of the slider values can be expanded. the lower limit of the slider can be expanded only if the slider is attached to an editline with the Gui::ATTACH_MIN_EXPAND flag.
set
Sets the minimum value, up to which the lower limit of the range of the slider values can be expanded.
set value - Minimum value, up to which the slider's lower limit can be dropped.

int MaxValue#

The maximum value of the slider.
set
Sets the maximum value for the slider.
set value - Maximum value.

int MinValue#

The minimum value of the slider.
set
Sets the minimum value for the slider.
set value - Minimum value.

int ButtonHeight#

The height of the slider handle in pixels (for a vertical slider).
set
Sets the height of the slider handle in pixels (for a vertical slider).
set value - Height of the handle in pixels.

int ButtonWidth#

The width of the slider handle in pixels (for a horizontal slider).
set
Sets width of the slider handle in pixels (for a horizontal slider).
set value - Width of the handle in pixels.

int Orientation#

The current orientation of the slider: horizontal or vertical one.
set
Sets orientation of the slider: horizontal (by default) or vertical one.
set value - 1 to set horizontal orientation; 0 to set vertical one.

vec4 ButtonColor#

Returns the current color for the widget's button.
set
Sets the color for the widget's button.
set value - Four-component vector specifying the color in the RGBA format.

vec4 BackgroundColor#

Returns the current background color used for the widget.
set
Sets the background color to be used for the widget.
set value - Four-component vector specifying the color in the RGBA format.

Members


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

Constructor. Creates a slider with given properties (horizontal one by default) and adds it to the specified GUI.

Arguments

  • Gui gui - GUI, to which the slider will belong.
  • int min - Minimum value.
  • int max - Maximum value.
  • int value - Initial value.

static WidgetSlider ( int min = 0, int max = 100, int value = 0 ) #

Constructor. Creates a slider with given properties (horizontal one by default) and adds it to the Engine GUI.

Arguments

  • int min - Minimum value.
  • int max - Maximum value.
  • int value - Initial value.
Last update: 2020-11-24
Build: ()