ItemViews namespace
#include <GGUI/Public/DataSource.h>
Lists, trees, and tiles as they are, for tools and tests. Each takes the node ui.List, ui.Tree, or ui.Tiles returned.
Functions
- auto RowCount(const UIContext& context, NodeHandle node) -> uint64_t
- How many rows it has.
- auto RowsBuilt(const UIContext& context, NodeHandle node) -> uint32_t
- How many rows are built as nodes now.
- auto PerLine(const UIContext& context, NodeHandle node) -> uint32_t
- Tiles per line (1 for a list or tree).
- auto FirstShown(const UIContext& context, NodeHandle node) -> uint64_t
- The first row in view.
- auto RowOffset(const UIContext& context, NodeHandle node) -> float
- How far the first row in view is scrolled past its top, in UI units.
- auto ItemAt(const UIContext& context, NodeHandle node, uint64_t row) -> ItemID
- The item in row
row; NoItem past the last row. - void ScrollToRow(UIContext& context, NodeHandle node, uint64_t row)
- Scroll
rowto the top, clamped. - void ScrollBy(UIContext& context, NodeHandle node, float units)
- Scroll by
units.