- Examples
- examples/dom/table.cpp.
Definition at line 37 of file table.hpp.
◆ Table() [1/3]
Create an empty table.
Definition at line 46 of file table.cpp.
◆ Table() [2/3]
Table |
( |
std::vector< std::vector< std::string > > |
input | ) |
|
Create a table from a vector of vector of string.
- Parameters
-
Definition at line 53 of file table.cpp.
◆ Table() [3/3]
Create a table from a vector of vector of Element.
- Parameters
-
Definition at line 70 of file table.cpp.
◆ SelectAll()
◆ SelectCell()
Select a cell of the table.
- Parameters
-
column | The column of the cell to select. |
row | The row of the cell to select. |
- Note
- You can use negative index to select from the end.
Definition at line 160 of file table.cpp.
◆ SelectRow()
Select a row of the table.
- Parameters
-
index | The index of the row to select. |
- Note
- You can use negative index to select from the end.
Definition at line 125 of file table.cpp.
◆ SelectRows()
Select a range of rows of the table.
- Parameters
-
row_min | The first row to select. |
row_max | The last row to select. |
- Note
- You can use negative index to select from the end.
Definition at line 134 of file table.cpp.
◆ SelectColumn()
Select a column of the table.
- Parameters
-
index | The index of the column to select. |
- Note
- You can use negative index to select from the end.
Definition at line 142 of file table.cpp.
◆ SelectColumns()
Select a range of columns of the table.
- Parameters
-
column_min | The first column to select. |
column_max | The last column to select. |
- Note
- You can use negative index to select from the end.
Definition at line 151 of file table.cpp.
◆ SelectRectangle()
TableSelection SelectRectangle |
( |
int |
column_min, |
|
|
int |
column_max, |
|
|
int |
row_min, |
|
|
int |
row_max |
|
) |
| |
Select a rectangle of the table.
- Parameters
-
column_min | The first column to select. |
column_max | The last column to select. |
row_min | The first row to select. |
row_max | The last row to select. |
- Note
- You can use negative index to select from the end.
Definition at line 171 of file table.cpp.
◆ Render()
Render the table.
- Returns
- The rendered table. This is an element you can draw.
Definition at line 206 of file table.cpp.
The documentation for this class was generated from the following files: