|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Stuff related to the (main) toolbar. More...
Go to the source code of this file.
Functions | |
| void | AllocateToolbar () |
| Allocate the toolbar. | |
| void | ToggleBoundingBoxes () |
| Toggle drawing of sprites' bounding boxes. | |
| void | ToggleDirtyBlocks () |
| Toggle drawing of the dirty blocks. | |
| void | ToggleWidgetOutlines () |
| Toggle drawing of widget outlines. | |
Variables | |
| uint | _toolbar_width |
| Width of the toolbar, shared by statusbar. | |
| RailType | _last_built_railtype |
| The most recently used type of rail. | |
| RoadType | _last_built_roadtype |
| The most recently used type of road. | |
| RoadType | _last_built_tramtype |
| The most recently used type of tram track. | |
Stuff related to the (main) toolbar.
Definition in file toolbar_gui.h.
| enum MainToolbarHotkeys : int32_t |
Definition at line 16 of file toolbar_gui.h.
| void AllocateToolbar | ( | ) |
Allocate the toolbar.
Definition at line 2573 of file toolbar_gui.cpp.
References _last_built_roadtype, _last_built_tramtype, ROADTYPE_ROAD, and ROADTYPE_TRAM.
Referenced by ShowVitalWindows().
| void ToggleBoundingBoxes | ( | ) |
Toggle drawing of sprites' bounding boxes.
Function is found here and not in viewport.cpp in order to avoid importing the settings structs to there.
Definition at line 1087 of file toolbar_gui.cpp.
References _settings_client, and MarkWholeScreenDirty().
Referenced by MenuClickHelp(), and MainWindow::OnHotkey().
| void ToggleDirtyBlocks | ( | ) |
Toggle drawing of the dirty blocks.
Function is found here and not in viewport.cpp in order to avoid importing the settings structs to there.
Definition at line 1104 of file toolbar_gui.cpp.
References _settings_client, and MarkWholeScreenDirty().
Referenced by MenuClickHelp(), and MainWindow::OnHotkey().
| void ToggleWidgetOutlines | ( | ) |
Toggle drawing of widget outlines.
Definition at line 1118 of file toolbar_gui.cpp.
References _settings_client, and MarkWholeScreenDirty().
Referenced by MenuClickHelp(), and MainWindow::OnHotkey().
|
extern |
The most recently used type of rail.
Definition at line 80 of file toolbar_gui.cpp.
Referenced by BuildRailToolbarWindow::ChangeRailTypeOnHotkey(), MenuClickBuildRail(), MainToolbarWindow::OnHotkey(), BuildRailToolbarWindow::RailToolbarGlobalHotkeys(), ReinitGuiAfterToggleElrail(), and SetDefaultRailGui().
|
extern |
The most recently used type of road.
Definition at line 81 of file toolbar_gui.cpp.
Referenced by AllocateToolbar(), BuildRoadToolbarWindow::ChangeRoadTypeOnHotkey(), MenuClickBuildRoad(), MainToolbarWindow::OnHotkey(), and ToolbarScenBuildRoad().
|
extern |
The most recently used type of tram track.
Definition at line 82 of file toolbar_gui.cpp.
Referenced by AllocateToolbar(), BuildRoadToolbarWindow::ChangeRoadTypeOnHotkey(), MenuClickBuildTram(), MainToolbarWindow::OnHotkey(), and ToolbarScenBuildTram().
|
extern |
Width of the toolbar, shared by statusbar.
Definition at line 78 of file toolbar_gui.cpp.
Referenced by MainToolbarWindow::FindWindowPlacementAndResize(), NetworkChatWindow::FindWindowPlacementAndResize(), ScenarioEditorToolbarWindow::FindWindowPlacementAndResize(), StatusBarWindow::FindWindowPlacementAndResize(), RelocateAllWindows(), NWidgetScenarioToolbarContainer::SetupSmallestSize(), and NWidgetToolbarContainer::SetupSmallestSize().