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

Method DrawWidget

src/timetable_gui.cpp:587–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585 }
586
587 void DrawWidget(const Rect &r, WidgetID widget) const override
588 {
589 switch (widget) {
590 case WID_VT_TIMETABLE_PANEL: {
591 this->DrawTimetablePanel(r);
592 break;
593 }
594
595 case WID_VT_ARRIVAL_DEPARTURE_PANEL: {
596 this->DrawArrivalDeparturePanel(r);
597 break;
598 }
599
600 case WID_VT_SUMMARY_PANEL: {
601 this->DrawSummaryPanel(r);
602 break;
603 }
604 }
605 }
606
607 static inline std::tuple<VehicleOrderID, ModifyTimetableFlags> PackTimetableArgs(const Vehicle *v, uint selected, bool speed)
608 {

Callers

nothing calls this directly

Calls 3

DrawTimetablePanelMethod · 0.95
DrawSummaryPanelMethod · 0.95

Tested by

no test coverage detected