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

Method Add

src/widget.cpp:1320–1325  ·  view source on GitHub ↗

* Append widget \a wid to container. * @param wid Widget to append. */

Source from the content-addressed store, hash-verified

1318 * @param wid Widget to append.
1319 */
1320void NWidgetContainer::Add(std::unique_ptr<NWidgetBase> &&wid)
1321{
1322 assert(wid != nullptr);
1323 wid->parent = this;
1324 this->children.push_back(std::move(wid));
1325}
1326
1327void NWidgetContainer::FillWidgetLookup(WidgetLookup &widget_lookup)
1328{

Callers 15

DoCreateNewIndustryFunction · 0.45
CheckForDockingTileFunction · 0.45
AddKeyFunction · 0.45
MakeMainToolbarFunction · 0.45
MakeTreeTypeButtonsFunction · 0.45
CmdBuildRoadWaypointFunction · 0.45
CmdBuildRoadStopFunction · 0.45
RemoveRoadStopFunction · 0.45
CmdBuildAirportFunction · 0.45
CmdBuildDockFunction · 0.45
BuildOilRigFunction · 0.45

Calls 2

push_backMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected