Tables namespace
#include <GGUI/Public/DataSource.h>
Tables as they are, for tools and tests. Each takes the node ui.Table returned.
Functions
- auto Body(const UIContext& context, NodeHandle table) -> NodeHandle
- The rows: a list or tree node usable with ItemViews.
- auto ColumnCount(const UIContext& context, NodeHandle table) -> uint32_t
- How many columns it shows.
- auto Heading(const UIContext& context, NodeHandle table, uint32_t index) -> NodeHandle
- Column
index'sheading. - auto UserWidth(const UIContext& context, NodeHandle table, uint32_t index) -> float
- Column
index'swidth as the user dragged it; 0 for a column never resized. - auto Cell(const UIContext& context, NodeHandle table, uint32_t built, uint32_t index) -> NodeHandle
- Cell of a built row, counting from the first built row. Null if there is none.
- auto Edit(UIContext& context, NodeHandle table, ItemID item, uint32_t index) -> bool
- Start a text edit in a cell, as a double click does. False if the cell can't be edited that way.
- auto Editing(const UIContext& context, NodeHandle table, uint32_t* index = nullptr) -> ItemID
- The cell being text-edited; NoItem if none.
- auto CursorColumn(const UIContext& context, NodeHandle table) -> uint32_t
- The keyboard cursor's column.