This handy class takes a copy of a TreeViewItem's openness when you create it, and restores that openness state when its destructor is called.
More...
#include <juce_TreeView.h>
This handy class takes a copy of a TreeViewItem's openness when you create it, and restores that openness state when its destructor is called.
This can very handy when you're refreshing sub-items - e.g.
void MyTreeViewItem::updateChildItems()
{
}
◆ OpennessRestorer()
TreeViewItem::OpennessRestorer::OpennessRestorer |
( |
TreeViewItem & |
treeViewItem | ) |
|
◆ ~OpennessRestorer()
TreeViewItem::OpennessRestorer::~OpennessRestorer |
( |
| ) |
|
◆ oldOpenness
◆ treeViewItem
The documentation for this class was generated from the following file: