#include <TableLayout.hpp>
You should use this to query a specific row structure and cells informations.
Public Types | |
enum | RowType { Header = 0, Data = 1, Footer = 2 } |
The row type. More... | |
Public Member Functions | |
void | appendCell (const Cell &cell) |
Append a new cell in the row. | |
const uint32 | cellCount () const |
Get the number of declared cells in this row. | |
void | ensureSize (const uint32 size, const bool multipleCells=true) |
Make sure the row is at least "size" large. | |
Cell * | getCellOnColumn (int32 index) |
Get the cell which is on the given column index. | |
const RowType | getRowType () const |
Get the row types. | |
Cell & | operator[] (const uint32 index) |
Access cell at given index. | |
Row (const RowType type=Data) | |
Constructor. | |
Public Attributes | |
Container::PlainOldData< Cell >::Array | cellArray |
The cell array. | |
enum HTML::Renderer::TableLayout::Row::RowType | rowType |
The row type. |
HTML::Renderer::TableLayout::Row::Row | ( | const RowType | type = Data |
) | [inline] |
Constructor.
void HTML::Renderer::TableLayout::Row::appendCell | ( | const Cell & | cell | ) | [inline] |
Append a new cell in the row.
The row will include this cell at the end of the cell array
cell | The cell to be appended is copied |
const uint32 HTML::Renderer::TableLayout::Row::cellCount | ( | ) | const [inline] |
Get the number of declared cells in this row.
void HTML::Renderer::TableLayout::Row::ensureSize | ( | const uint32 | size, | |
const bool | multipleCells = true | |||
) | [inline] |
Make sure the row is at least "size" large.
If the row is not large enough (it doesn't have as many cells as specified), then it expanded with "blank" cells or one cell which spans the remaining area depending on the multipleCells parameter.
size | The expected row size in cells | |
multipleCells | Should the row be expanded with multiple cells, or 1 spanning cell |
Cell* HTML::Renderer::TableLayout::Row::getCellOnColumn | ( | int32 | index | ) | [inline] |
Get the cell which is on the given column index.
As cells can span on multiple column, this method is a short hand to avoid counting columns by hand.
index | The column index to find the cell which render on it |
const RowType HTML::Renderer::TableLayout::Row::getRowType | ( | ) | const [inline] |
Get the row types.
Cell& HTML::Renderer::TableLayout::Row::operator[] | ( | const uint32 | index | ) | [inline] |
Access cell at given index.
The cell array.
The row type.