OpenTTD Source: src/toolbar_gui.h Source File

OpenTTD Source 15.3

toolbar_gui.h
Go to the documentation of this file.
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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef TOOLBAR_GUI_H
11#define TOOLBAR_GUI_H
12
13enum MainToolbarHotkeys : int32_t {
14 MTHK_PAUSE,
15 MTHK_FASTFORWARD,
16 MTHK_SETTINGS,
17 MTHK_SAVEGAME,
18 MTHK_LOADGAME,
19 MTHK_SMALLMAP,
20 MTHK_TOWNDIRECTORY,
21 MTHK_SUBSIDIES,
22 MTHK_STATIONS,
23 MTHK_FINANCES,
24 MTHK_COMPANIES,
25 MTHK_STORY,
26 MTHK_GOAL,
27 MTHK_GRAPHS,
28 MTHK_LEAGUE,
29 MTHK_INDUSTRIES,
30 MTHK_TRAIN_LIST,
31 MTHK_ROADVEH_LIST,
32 MTHK_SHIP_LIST,
33 MTHK_AIRCRAFT_LIST,
34 MTHK_ZOOM_IN,
35 MTHK_ZOOM_OUT,
36 MTHK_BUILD_RAIL,
37 MTHK_BUILD_ROAD,
38 MTHK_BUILD_TRAM,
39 MTHK_BUILD_DOCKS,
40 MTHK_BUILD_AIRPORT,
41 MTHK_BUILD_TREES,
42 MTHK_MUSIC,
43 MTHK_LANDINFO,
44 MTHK_SCRIPT_DEBUG,
45 MTHK_SMALL_SCREENSHOT,
46 MTHK_ZOOMEDIN_SCREENSHOT,
47 MTHK_DEFAULTZOOM_SCREENSHOT,
48 MTHK_GIANT_SCREENSHOT,
49 MTHK_CHEATS,
50 MTHK_TERRAFORM,
51 MTHK_EXTRA_VIEWPORT,
52 MTHK_CLIENT_LIST,
53 MTHK_SIGN_LIST
54};
55
56void AllocateToolbar();
57void ToggleBoundingBoxes();
58void ToggleDirtyBlocks();
59void ToggleWidgetOutlines();
60
61extern uint _toolbar_width;
62
63#endif /* TOOLBAR_GUI_H */
_toolbar_width
uint _toolbar_width
Width of the toolbar, shared by statusbar.
Definition toolbar_gui.cpp:80
ToggleDirtyBlocks
void ToggleDirtyBlocks()
Toggle drawing of the dirty blocks.
Definition toolbar_gui.cpp:1105
AllocateToolbar
void AllocateToolbar()
Allocate the toolbar.
Definition toolbar_gui.cpp:2592
ToggleBoundingBoxes
void ToggleBoundingBoxes()
Toggle drawing of sprites' bounding boxes.
Definition toolbar_gui.cpp:1088
ToggleWidgetOutlines
void ToggleWidgetOutlines()
Toggle drawing of widget outlines.
Definition toolbar_gui.cpp:1119