GGUI::LogViews namespace

Log views as they are, for tools and tests. Each takes the node ui.LogView returned.

Functions

auto FirstShown(const UIContext& context, NodeHandle node) -> uint64_t
The index of the line at the top of the view.
auto RowsBuilt(const UIContext& context, NodeHandle node) -> uint32_t
How many rows are built as nodes now: those in view.
auto RowsShown(const UIContext& context, NodeHandle node) -> uint64_t
How many rows the view has, after its filter.
auto Selection(const UIContext& context, NodeHandle node) -> std::string
The selected lines' text, a line feed between each.
auto Scroll(UIContext& context, NodeHandle node, int64_t rows) -> bool
Scroll by rows; positive is towards newer lines. False if it didn't move.