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.WidgetScroll Class

Inherits: Widget

This class creates a scrollbar: horizontal or vertical one.

WidgetScroll Class

Properties

int Value#

The value of the scroller, i.e. its position.
set
Sets a value of the scroller, i.e. its position.
set value - Position of the scroller. The minimum value is 0, the maximum value is the difference between the object width and the frame width.

int StepSize#

The step of the scroller. this step is used to increment the scroll position.
set
Sets the step of the scroller. This step is used to increment the scroll position.
set value - Step of the scroller in pixels. The minimum is 1 pixel.

int FrameSize#

The size of the currently visible area.
set
Sets the size of the currently visible area.
set value - Size of the visible area in pixels. The minimum is 1 pixel.

int ObjectSize#

The size of the whole area that is scrolled through.
set
Sets the size of the whole area to be scrolled through.
set value - Size of the object being scrolled in pixels. The minimum is 1 pixel.

int Orientation#

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

vec4 ScrollColor#

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

Members


static WidgetScroll ( Gui gui, int object = 100, int frame = 10, int step = 1, int value = 0 ) #

Constructor. Creates a scroller with the given parameters and adds it to the specified GUI.

Arguments

  • Gui gui - GUI, to which the scroll bar will belong.
  • int object - Width of the object to scroll in pixels. This is an optional argument.
  • int frame - Width of the visible area in pixels. This is an optional argument.
  • int step - Step of the scroller in pixels. This is an optional argument.
  • int value - Initial position of the scroller. This is an optional argument.

static WidgetScroll ( int object = 100, int frame = 10, int step = 1, int value = 0 ) #

Constructor. Creates a scroller with the given parameters and adds it to the Engine GUI.

Arguments

  • int object - Width of the object to scroll in pixels. This is an optional argument.
  • int frame - Width of the visible area in pixels. This is an optional argument.
  • int step - Step of the scroller in pixels. This is an optional argument.
  • int value - Initial position of the scroller. This is an optional argument.
Last update: 2020-11-24
Build: ()