Property | Type | Description | |
---|---|---|---|
backgroundBottom | |||
backgroundLeft | |||
backgroundRight | |||
backgroundTop | |||
clip | bool | ||
debugCellColor | Color | ||
debugElementColor | Color | ||
debugTableColor | Color |
Property | Type | Description | |
---|---|---|---|
_background | IDrawable |
Method | Description | |
---|---|---|
Table ( ) : System | ||
add ( ) : Cell |
Adds a cell without an element
|
|
add ( |
Adds a new cell to the table with the specified element.
|
|
add ( string text ) : Cell |
Adds a new cell with a label
|
|
addDebugRect ( float x, float y, float w, float h, Color color ) : void | ||
align ( int align ) : |
Alignment of the logical table within the table element. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom} {@link Align#left}, {@link Align#right}, or any combination of those.
|
|
bottom ( ) : |
Adds {@link Align#bottom} and clears {@link Align#top} for the alignment of the logical table within the table element.
|
|
center ( ) : |
Sets the alignment of the logical table within the table element to {@link Align#center}. This clears any other alignment.
|
|
clearChildren ( ) : void |
Removes all elements and cells from the table
|
|
computeDebugRects ( float x, float y, float layoutX, float layoutY, float layoutWidth, float layoutHeight, float tableWidth, float tableHeight, float hpadding, float vpadding ) : void | ||
computeSize ( ) : void | ||
debugAll ( ) : |
Turn on all debug lines (table, cell, and element)
|
|
debugCell ( ) : |
Turns on cell debug lines.
|
|
debugElement ( ) : |
Turns on element debug lines.
|
|
debugRender ( Graphics graphics ) : void | ||
debugTable ( ) : |
Turns on table debug lines.
|
|
defaults ( ) : Cell |
The cell values that will be used as the defaults for all cells.
|
|
draw ( Graphics graphics, float parentAlpha ) : void | ||
endRow ( ) : void | ||
getAlign ( ) : int | ||
getBackground ( ) : IDrawable | ||
getCell ( |
Returns the cell for the specified element in this table, or null.
|
|
getCells ( ) : List |
returns all the Cells in the table
|
|
getColumnDefaults ( int column ) : Cell |
Gets the cell values that will be used as the defaults for all cells in the specified column. Columns are indexed starting at 0
|
|
getColumnWidth ( int columnIndex ) : float |
Returns the width of the specified column.
|
|
getColumns ( ) : int | ||
getPadBottom ( ) : float | ||
getPadBottomValue ( ) : |
||
getPadLeft ( ) : float | ||
getPadLeftValue ( ) : |
||
getPadRight ( ) : float | ||
getPadRightValue ( ) : |
||
getPadTop ( ) : float | ||
getPadTopValue ( ) : |
||
getPadX ( ) : float |
Returns {@link #getPadLeft()} plus {@link #getPadRight()}.
|
|
getPadY ( ) : float |
Returns {@link #getPadTop()} plus {@link #getPadBottom()}.
|
|
getRowDefaults ( ) : Cell |
gets the current Cell defaults. This is the same value returned by a call to row()
|
|
getRowHeight ( int rowIndex ) : float |
Returns the height of the specified row.
|
|
getRows ( ) : int | ||
hit ( Vector2 point ) : |
||
invalidate ( ) : void | ||
layout ( ) : void | ||
layout ( float layoutX, float layoutY, float layoutWidth, float layoutHeight ) : void |
Positions and sizes children of the table using the cell associated with each child. The values given are the position within the parent and size of the table.
|
|
left ( ) : |
Adds {@link Align#left} and clears {@link Align#right} for the alignment of the logical table within the table element.
|
|
pad ( |
Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value.
|
|
pad ( |
||
pad ( float pad ) : |
Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value.
|
|
pad ( float top, float left, float bottom, float right ) : |
||
padBottom ( |
Padding at the bottom edge of the table.
|
|
padBottom ( float padBottom ) : |
Padding at the bottom edge of the table.
|
|
padLeft ( |
Padding at the left edge of the table.
|
|
padLeft ( float padLeft ) : |
Padding at the left edge of the table.
|
|
padRight ( |
Padding at the right edge of the table.
|
|
padRight ( float padRight ) : |
Padding at the right edge of the table.
|
|
padTop ( |
Padding at the top edge of the table.
|
|
padTop ( float padTop ) : |
Padding at the top edge of the table.
|
|
removeElement ( |
||
reset ( ) : void |
Removes all elements and cells from the table (same as {@link #clear()}) and additionally resets all table properties and cell, column, and row defaults.
|
|
right ( ) : |
Adds {@link Align#right} and clears {@link Align#left} for the alignment of the logical table within the table element.
|
|
round ( bool round ) : |
If true (the default), positions and sizes are rounded to integers.
|
|
row ( ) : Cell |
Indicates that subsequent cells should be added to a new row and returns the cell values that will be used as the defaults for all cells in the new row.
|
|
setBackground ( IDrawable background ) : |
background may be null to clear the background.
|
|
setDebug ( bool enabled ) : void |
enables/disables all debug lines (table, cell, and widget)
|
|
setFillParent ( bool fillParent ) : |
||
stack ( ) : Cell |
Adds a new cell to the table with the specified elements in a {@link Stack}.
|
|
tableDebug ( TableDebug tableDebug ) : |
Turns debug lines on or off.
|
|
top ( ) : |
Adds {@link Align#top} and clears {@link Align#bottom} for the alignment of the logical table within the table element.
|
Method | Description | |
---|---|---|
drawBackground ( Graphics graphics, float parentAlpha, float x, float y ) : void |
Called to draw the background, before clipping is applied (if enabled). Default implementation draws the background drawable.
|
Method | Description | |
---|---|---|
ensureSize ( float array, int size ) : float[] | ||
obtainCell ( ) : Cell |
public addDebugRect ( float x, float y, float w, float h, Color color ) : void | ||
x | float | |
y | float | |
w | float | |
h | float | |
color | Color | |
return | void |
public computeDebugRects ( float x, float y, float layoutX, float layoutY, float layoutWidth, float layoutHeight, float tableWidth, float tableHeight, float hpadding, float vpadding ) : void | ||
x | float | |
y | float | |
layoutX | float | |
layoutY | float | |
layoutWidth | float | |
layoutHeight | float | |
tableWidth | float | |
tableHeight | float | |
hpadding | float | |
vpadding | float | |
return | void |
public debugRender ( Graphics graphics ) : void | ||
graphics | Graphics | |
return | void |
public draw ( Graphics graphics, float parentAlpha ) : void | ||
graphics | Graphics | |
parentAlpha | float | |
return | void |
protected drawBackground ( Graphics graphics, float parentAlpha, float x, float y ) : void | ||
graphics | Graphics | Graphics. |
parentAlpha | float | Parent alpha. |
x | float | The x coordinate. |
y | float | The y coordinate. |
return | void |
public getCell ( |
||
element | element. | |
return | Cell |
public getColumnDefaults ( int column ) : Cell | ||
column | int | Column. |
return | Cell |
public getColumnWidth ( int columnIndex ) : float | ||
columnIndex | int | Column index. |
return | float |
public getRowHeight ( int rowIndex ) : float | ||
rowIndex | int | Row index. |
return | float |
public layout ( float layoutX, float layoutY, float layoutWidth, float layoutHeight ) : void | ||
layoutX | float | Layout x. |
layoutY | float | Layout y. |
layoutWidth | float | Layout width. |
layoutHeight | float | Layout height. |
return | void |
public pad ( |
||
top | ||
left | ||
bottom | ||
right | ||
return |
public pad ( float top, float left, float bottom, float right ) : |
||
top | float | |
left | float | |
bottom | float | |
right | float | |
return |
public padBottom ( |
||
padBottom | Pad bottom. | |
return |
public padBottom ( float padBottom ) : |
||
padBottom | float | Pad bottom. |
return |
public padLeft ( |
||
padLeft | Pad left. | |
return |
public padLeft ( float padLeft ) : |
||
padLeft | float | Pad left. |
return |
public padRight ( |
||
padRight | Pad right. | |
return |
public padRight ( float padRight ) : |
||
padRight | float | Pad right. |
return |
public removeElement ( |
||
element | ||
return | bool |
public round ( bool round ) : |
||
round | bool | If set to |
return |
public setBackground ( IDrawable background ) : |
||
background | IDrawable | Background. |
return |
public setDebug ( bool enabled ) : void | ||
enabled | bool | If set to |
return | void |
public setFillParent ( bool fillParent ) : |
||
fillParent | bool | |
return |
public tableDebug ( TableDebug tableDebug ) : |
||
tableDebug | TableDebug | Table debug. |
return |
static public Value,Nez.UI backgroundBottom | ||
return |
static public Value,Nez.UI backgroundRight | ||
return |