OpenTTD Source: src/signs_func.h Source File

OpenTTD Source 15.0-beta1

signs_func.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 <http://www.gnu.org/licenses/>.
6 */
7
10#ifndef SIGNS_FUNC_H
11#define SIGNS_FUNC_H
12
13#include "signs_type.h"
14#include "tile_type.h"
15
16struct Window;
17
18void UpdateAllSignVirtCoords();
19void PlaceProc_Sign(TileIndex tile);
20bool CompanyCanRenameSign(const Sign *si);
21
22/* signs_gui.cpp */
23void ShowRenameSignWindow(const Sign *si);
24void HandleClickOnSign(const Sign *si);
25void DeleteRenameSignWindow(SignID sign);
26
27 Window *ShowSignList();
28
29#endif /* SIGNS_FUNC_H */
PlaceProc_Sign
void PlaceProc_Sign(TileIndex tile)
PlaceProc function, called when someone pressed the button if the sign-tool is selected.
Definition signs_cmd.cpp:122
HandleClickOnSign
void HandleClickOnSign(const Sign *si)
Handle clicking on a sign.
Definition signs_gui.cpp:556
DeleteRenameSignWindow
void DeleteRenameSignWindow(SignID sign)
Close the sign window associated with the given sign.
Definition signs_gui.cpp:585
CompanyCanRenameSign
bool CompanyCanRenameSign(const Sign *si)
Check if the current company can rename a given sign.
Definition signs.cpp:71
ShowRenameSignWindow
void ShowRenameSignWindow(const Sign *si)
Show the window to change the text of a sign.
Definition signs_gui.cpp:573
UpdateAllSignVirtCoords
void UpdateAllSignVirtCoords()
Update the coordinates of all signs.
Definition signs.cpp:59
ShowSignList
Window * ShowSignList()
Open the sign list window.
Definition signs_gui.cpp:392
signs_type.h
Types related to signs.
SignID
uint16_t SignID
The type of the IDs of signs.
Definition signs_type.h:14
Sign
Definition signs_base.h:21
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > >
Window
Data structure for an opened window.
Definition window_gui.h:273
Window::GetWidget
const NWID * GetWidget(WidgetID widnum) const
Get the nested widget with number widnum from the nested widget tree.
Definition window_gui.h:977
tile_type.h
Types related to tiles.