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

Function get_num_children

library/modules/Gui.cpp:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277static size_t get_num_children(df::widget * w) {
278 if (!w)
279 return 0;
280 df::widget_container *container = virtual_cast<df::widget_container>(w);
281 if (!container)
282 return 0;
283 return container->children.size();
284}
285
286static df::widget * get_visible_child(df::widget *parent) {
287 df::widget_container *container = virtual_cast<df::widget_container>(parent);

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected