OpenTTD Source 20241224-master-gf74b0cf984
|
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 outlihes. | |
Variables | |
uint | _toolbar_width |
Width of the toolbar, shared by statusbar. | |
Stuff related to the (main) toolbar.
Definition in file toolbar_gui.h.
enum MainToolbarHotkeys |
Definition at line 13 of file toolbar_gui.h.
void AllocateToolbar | ( | ) |
Allocate the toolbar.
Definition at line 2558 of file toolbar_gui.cpp.
References 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 1067 of file toolbar_gui.cpp.
References _settings_client, ClientSettings::gui, MarkWholeScreenDirty(), and GUISettings::newgrf_developer_tools.
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 1084 of file toolbar_gui.cpp.
References _settings_client, ClientSettings::gui, MarkWholeScreenDirty(), and GUISettings::newgrf_developer_tools.
Referenced by MenuClickHelp(), and MainWindow::OnHotkey().
void ToggleWidgetOutlines | ( | ) |
Toggle drawing of widget outlihes.
Definition at line 1098 of file toolbar_gui.cpp.
References _settings_client, ClientSettings::gui, MarkWholeScreenDirty(), and GUISettings::newgrf_developer_tools.
Referenced by MenuClickHelp(), and MainWindow::OnHotkey().
|
extern |
Width of the toolbar, shared by statusbar.
Definition at line 74 of file toolbar_gui.cpp.
Referenced by NetworkChatWindow::FindWindowPlacementAndResize(), StatusBarWindow::FindWindowPlacementAndResize(), MainToolbarWindow::FindWindowPlacementAndResize(), ScenarioEditorToolbarWindow::FindWindowPlacementAndResize(), RelocateAllWindows(), NWidgetToolbarContainer::SetupSmallestSize(), and NWidgetScenarioToolbarContainer::SetupSmallestSize().