|
TachyonUI 0.1.0
High-performance UI for building tools.
|
A table column; callers pass an array of them each frame. More...
#include <gui_controls/gui_table_types.h>
Public Attributes | |
| std::string_view | header |
| header text | |
| CssPx | initialWidth = 120 |
| starting width | |
| CssPx | minWidth = 40 |
| resize lower limit | |
| CssPx | maxWidth = 2000 |
| resize upper limit | |
| bool | sortable = false |
| clicking the header sorts by this column | |
| bool | locked = false |
| Can't be dragged, and other columns can't be dragged past it. | |
| ColumnSizing | sizing = ColumnSizing::Resizable |
| bool | interactiveContent = false |
| Keeps cells hittable in row mode (where cells are NoInput so a click selects the row), for columns with their own widgets such as a visibility toggle. | |
| StyleRef | columnBackground = StyleRef::Invalid() |
| Optional background strip spanning the whole body height, behind the cells and above the row backdrops. | |
| StyleRef | cellStyle = StyleRef::Invalid() |
| Optional style for this column's Cell(text) cells in place of the table's, for example right-aligned numbers. | |
A table column; callers pass an array of them each frame.
| std::string_view tachyon::TableColumn::header |
header text
| CssPx tachyon::TableColumn::initialWidth = 120 |
starting width
| CssPx tachyon::TableColumn::minWidth = 40 |
resize lower limit
| CssPx tachyon::TableColumn::maxWidth = 2000 |
resize upper limit
| bool tachyon::TableColumn::sortable = false |
clicking the header sorts by this column
| bool tachyon::TableColumn::locked = false |
Can't be dragged, and other columns can't be dragged past it.
| ColumnSizing tachyon::TableColumn::sizing = ColumnSizing::Resizable |
| bool tachyon::TableColumn::interactiveContent = false |
Keeps cells hittable in row mode (where cells are NoInput so a click selects the row), for columns with their own widgets such as a visibility toggle.
| StyleRef tachyon::TableColumn::columnBackground = StyleRef::Invalid() |
Optional background strip spanning the whole body height, behind the cells and above the row backdrops.
Fixed-width columns only.
| StyleRef tachyon::TableColumn::cellStyle = StyleRef::Invalid() |
Optional style for this column's Cell(text) cells in place of the table's, for example right-aligned numbers.
Keep its height equal to the table's cell style.