MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / draw

Function draw

src/OpenLoco/src/Ui/Windows/DebugWindow.cpp:173–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 static void draw(Ui::Window& window, Gfx::DrawingContext& drawingCtx)
174 {
175 // Draw widgets.
176 window.draw(drawingCtx);
177
178 // Draw interaction request on top of everything else.
179 for (const auto& widget : window.widgets)
180 {
181 WidgetState widgetState{};
182 widgetState.window = &window;
183
184 drawInteractionRequest(drawingCtx, widget, widgetState);
185 }
186 }
187
188 static constexpr WindowEventList kEvents = {
189 .onMouseUp = onMouseUp,

Callers

nothing calls this directly

Calls 2

drawInteractionRequestFunction · 0.85
drawMethod · 0.45

Tested by

no test coverage detected