This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
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
Content Creation
Content Optimization
Materials
Art Samples
Tutorials
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.

Unigine::WidgetGridBox Class

Header: #include <UnigineWidgets.h>
Inherits from: WidgetVBox

This class creates a grid box.

WidgetGridBox Class

Members


static WidgetGridBoxPtr create ( const Ptr<Gui> & gui, int num = 2, int x = 0, int y = 0 ) #

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

Arguments

  • const Ptr<Gui> & gui - GUI, to which the new box will belong.
  • int num - Number of columns in the grid. This is an optional parameter.
  • int x - Horizontal space between the widgets in the box and between them and the box border. This is an optional parameter.
  • int y - Vertical space between the widgets in the box and between them and the box border. This is an optional parameter.

static WidgetGridBoxPtr create ( int num = 2, int x = 0, int y = 0 ) #

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

Arguments

  • int num - Number of columns in the grid. This is an optional parameter.
  • int x - Horizontal space between the widgets in the box and between them and the box border. This is an optional parameter.
  • int y - Vertical space between the widgets in the box and between them and the box border. This is an optional parameter.

void setColumnRatio ( int num, int ratio ) #

Sets the width-to-height ratio of the specified column.

Arguments

  • int num - Column number in range from 0 to the total number of columns.
  • int ratio - Width-to-height ratio.

int getColumnRatio ( int num ) const#

Returns the current width-to-height ratio of the specified column.

Arguments

  • int num - Column number in range from 0 to the total number of columns.

Return value

Width-to-height ratio.

void setNumColumns ( int columns ) #

Sets a number of columns in the grid.

Arguments

  • int columns - Number of columns.

int getNumColumns ( ) const#

Returns the number of columns in the grid.

Return value

Number of columns.
Last update: 2021-04-29
Build: ()