Could:
TreeView::getOpennessState (const bool alsoIncludeScroll) be extended to also have a :
const bool alsoIncludeSelectionState = false
parameter?
For lightweight treeview stuff, I’m finding the opennessState() method pretty convenient, but it would be uber handy if it could also optionally store which tree items were selected.