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

Method GetCallbackWnd

src/viewport.cpp:2665–2668  ·  view source on GitHub ↗

* Get the window that started the current highlighting. * @return The window that requested the current tile highlighting, or \c nullptr if not available. */

Source from the content-addressed store, hash-verified

2663 * @return The window that requested the current tile highlighting, or \c nullptr if not available.
2664 */
2665Window *TileHighlightData::GetCallbackWnd()
2666{
2667 return FindWindowById(this->window_class, this->window_number);
2668}
2669
2670
2671

Callers 8

HandlePlacePresizeFunction · 0.80
HandleMouseDragDropFunction · 0.80
OnClickMethod · 0.80
VehicleClickedFunction · 0.80
PlaceObjectFunction · 0.80
ShowMeasurementTooltipsFunction · 0.80
VpHandlePlaceSizingDragFunction · 0.80
SetObjectToPlaceFunction · 0.80

Calls 1

FindWindowByIdFunction · 0.85

Tested by

no test coverage detected