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()
juce::TreeViewItem::OpennessRestorer::OpennessRestorer |
( |
TreeViewItem & |
| ) |
|
◆ ~OpennessRestorer()
juce::TreeViewItem::OpennessRestorer::~OpennessRestorer |
( |
| ) |
|
◆ oldOpenness
std::unique_ptr<XmlElement> juce::TreeViewItem::OpennessRestorer::oldOpenness |
|
private |
◆ treeViewItem
TreeViewItem& juce::TreeViewItem::OpennessRestorer::treeViewItem |
|
private |
The documentation for this class was generated from the following file: