Lysa.ui  0.0
Lysa 3D Engine
GridCell Class Referenceabstract

Detailed Description

A cell of a Grid, holding the widgets displayed at one position of the grid. The data displayed by a cell is never owned by the cell, store it in its user data.

Inherits from: Panel

Lua full name: lysa.ui.GridCell

Public Member Functions

boolean covers (row: integer, column: integer)
 Returns true if the cell covers the given position of the grid, spans included. More...
 

Properties

integer row
 The row of the cell, zero being the top row. (read-only)
 
integer column
 The column of the cell, zero being the leftmost column. (read-only)
 
integer row_span
 The number of rows covered by the cell. (read-only)
 
integer column_span
 The number of columns covered by the cell. (read-only)
 
boolean spanning
 True if the cell covers more than one position of the grid. (read-only)
 

Member Function Documentation

boolean covers ( integer  row,
integer  column)

Returns true if the cell covers the given position of the grid, spans included.

Parameters
rowinteger
columninteger
Returns
boolean

Property Documentation

integer row

The row of the cell, zero being the top row. (read-only)

integer column

The column of the cell, zero being the leftmost column. (read-only)

integer row_span

The number of rows covered by the cell. (read-only)

integer column_span

The number of columns covered by the cell. (read-only)

boolean spanning

True if the cell covers more than one position of the grid. (read-only)