MCPcopy Create free account
hub / github.com/DFHack/dfhack / get_visible_child_container

Function get_visible_child_container

library/modules/Gui.cpp:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297static df::widget_container * get_visible_child_container(df::widget *parent) {
298 df::widget_container *container = virtual_cast<df::widget_container>(parent);
299 if (!container)
300 return NULL;
301 for (auto child : container->children) {
302 if (widget_is_visible(child.get()))
303 return virtual_cast<df::widget_container>(child.get());
304 }
305 return NULL;
306}
307
308static string get_building_custom_name(df::building_workshopst * bld) {
309 if (bld->type != df::workshop_type::Custom)

Callers 1

Calls 2

widget_is_visibleFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected