MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetFoldingState

Method GetFoldingState

src/settingentry_gui.cpp:341–346  ·  view source on GitHub ↗

* Recursively accumulate the folding state of the tree. * @param[in,out] all_folded Set to false, if one entry is not folded. * @param[in,out] all_unfolded Set to false, if one entry is folded. */

Source from the content-addressed store, hash-verified

339 * @param[in,out] all_unfolded Set to false, if one entry is folded.
340 */
341void SettingsContainer::GetFoldingState(bool &all_folded, bool &all_unfolded) const
342{
343 for (auto &it : this->entries) {
344 it->GetFoldingState(all_folded, all_unfolded);
345 }
346}
347
348/**
349 * Update the filter state.

Callers 1

OnInvalidateDataMethod · 0.45

Calls 1

IsFilteredMethod · 0.80

Tested by

no test coverage detected