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

Method FillWidgetLookup

src/widget.cpp:933–936  ·  view source on GitHub ↗

* @fn void NWidgetBase::FillWidgetLookup(WidgetLookup &widget_lookup) * Fill the Window::widget_lookup with pointers to nested widgets in the tree. * @param widget_lookup The WidgetLookup. */

Source from the content-addressed store, hash-verified

931 * @param widget_lookup The WidgetLookup.
932 */
933void NWidgetBase::FillWidgetLookup(WidgetLookup &widget_lookup)
934{
935 if (this->index >= 0) widget_lookup[this->index] = this;
936}
937
938/**
939 * @fn void NWidgetBase::Draw(const Window *w)

Callers 4

CreateNestedTreeMethod · 0.45
OnInitMethod · 0.45
SetDisplayedPlaneMethod · 0.45
OnInitMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected