GUIGrid

From Virtual World Web Wiki
Revision as of 12:55, 26 May 2017 by Spark5 (Talk | contribs) (Documentation for the GUIGrid class)

Jump to: navigation, search

A component for gridded layouts where all elements have the same size

  • Inherits class: GUIComponent
  • This is a JavaScript visible object

Remarks [edit]

Properties

JSVector2 CellSize {get; set;}
How large should each element in the grid be
int ColumnCount {get; set;}
Fixed number of columns to use in this grid (or 0 if the number of columns is flexible)
bool Horizontal {get; set;}
Determines if the layout flow is Horizontal or Vertical
int RowCount {get; set;}
Fixed number of rows to use in this grid (or 0 if the number of rows is flexible)
JSVector2 Spacing {get; set;}
Pixel offset between each element in the grid
Corner StartCorner {get; set;}
Which corner does the grid fill from?