GGUI::TreeProps struct

Properties of ui.Tree.

Public variables

float Indent
indent per level
bool bExpanded
ItemSet* Toggled
Items the user has toggled away from the default.
GGSize Width
Anything but Fit makes every row as wide as the tree, so row content can fill what the indent leaves.
std::string_view Class
its style classes
float RowHeight
as ListProps::RowHeight
GGSize Height
as ListProps::Height
ItemSet* Selected
as ListProps::Selected
GGSelect Select
as ListProps::Select
GGSort Sort
applied under each parent
ItemMoveFn OnMove
as ListProps::OnMove; dropping on the middle of a row makes it a child

Variable documentation

bool GGUI::TreeProps::bExpanded

items start expanded

ItemSet* GGUI::TreeProps::Toggled

Items the user has toggled away from the default.

With a set, expansion survives a branch being collapsed and reopened and is shared between views. Without one, each row remembers only while it exists.

GGSize GGUI::TreeProps::Width

Anything but Fit makes every row as wide as the tree, so row content can fill what the indent leaves.

its width