MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / clear

Method clear

forms/listbox.cpp:258–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256void ListBox::unloadResources() {}
257
258void ListBox::clear()
259{
260 for (auto &c : Controls)
261 {
262 c->setParent(nullptr);
263 }
264 Controls.clear();
265 this->selected = nullptr;
266 this->hovered = nullptr;
267 if (scroller_is_internal)
268 {
269 configureInternalScrollBar();
270 }
271 resolveLocation();
272 this->setDirty();
273}
274
275void ListBox::addItem(sp<Control> Item)
276{

Callers 13

setupScreenModesMethod · 0.45
setupDisplayNumMethod · 0.45
setupScalingMethod · 0.45
setupModListMethod · 0.45
extractAgentTypesMethod · 0.45
UFO2PMethod · 0.45
TACPMethod · 0.45
onRenderMethod · 0.45
reloadFormsXmlMethod · 0.45
onRenderMethod · 0.45

Calls 2

setParentMethod · 0.80
setDirtyMethod · 0.80

Tested by 1

test_rect_compactionFunction · 0.36