TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::TableColumn Struct Reference

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.

Detailed Description

A table column; callers pass an array of them each frame.

Member Data Documentation

◆ header

std::string_view tachyon::TableColumn::header

header text

◆ initialWidth

CssPx tachyon::TableColumn::initialWidth = 120

starting width

◆ minWidth

CssPx tachyon::TableColumn::minWidth = 40

resize lower limit

◆ maxWidth

CssPx tachyon::TableColumn::maxWidth = 2000

resize upper limit

◆ sortable

bool tachyon::TableColumn::sortable = false

clicking the header sorts by this column

◆ locked

bool tachyon::TableColumn::locked = false

Can't be dragged, and other columns can't be dragged past it.

◆ sizing

ColumnSizing tachyon::TableColumn::sizing = ColumnSizing::Resizable

◆ interactiveContent

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.

◆ columnBackground

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.

◆ cellStyle

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.


The documentation for this struct was generated from the following file: