Codechange: Update minimum CMake version to 3.16 for all parts. (#13141)
[openttd-github.git] / src / tilehighlight_func.h
blob572c5bd43ec6a5745dde82f955a6d0c2d4ab3256
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 /** @file tilehighlight_func.h Functions related to tile highlights. */
10 #ifndef TILEHIGHLIGHT_FUNC_H
11 #define TILEHIGHLIGHT_FUNC_H
13 #include "gfx_type.h"
14 #include "tilehighlight_type.h"
16 void PlaceProc_DemolishArea(TileIndex tile);
17 bool GUIPlaceProcDragXY(ViewportDragDropSelectionProcess proc, TileIndex start_tile, TileIndex end_tile);
19 bool HandlePlacePushButton(Window *w, WidgetID widget, CursorID cursor, HighLightStyle mode);
20 void SetObjectToPlaceWnd(CursorID icon, PaletteID pal, HighLightStyle mode, Window *w);
21 void SetObjectToPlace(CursorID icon, PaletteID pal, HighLightStyle mode, WindowClass window_class, WindowNumber window_num);
22 void ResetObjectToPlace();
24 void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
25 void VpStartDragging(ViewportDragDropSelectionProcess process);
26 void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process);
27 void VpSetPresizeRange(TileIndex from, TileIndex to);
28 void VpSetPlaceSizingLimit(int limit);
30 void UpdateTileSelection();
32 extern TileHighlightData _thd;
34 #endif /* TILEHIGHLIGHT_FUNC_H */