OpenTTD Source  20241108-master-g80f628063a
company_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 <http://www.gnu.org/licenses/>.
6  */
7 
10 #ifndef COMPANY_GUI_H
11 #define COMPANY_GUI_H
12 
13 #include "company_type.h"
14 #include "group.h"
15 #include "gfx_type.h"
16 
18 void DrawCompanyIcon(CompanyID c, int x, int y);
19 
20 void ShowCompanyLiveryWindow(CompanyID company, GroupID group);
21 void ShowCompanyStations(CompanyID company);
22 void ShowCompanyFinances(CompanyID company);
23 void ShowCompany(CompanyID company);
24 
25 void InvalidateCompanyWindows(const Company *c);
26 void CloseCompanyWindows(CompanyID company);
28 
29 #endif /* COMPANY_GUI_H */
void ShowCompanyFinances(CompanyID company)
Open the finances window of a company.
void DrawCompanyIcon(CompanyID c, int x, int y)
Draw the icon of a company.
void CloseCompanyWindows(CompanyID company)
Close all windows of a company.
Definition: window.cpp:1168
void ShowCompany(CompanyID company)
Show the window with the overview of the company.
TextColour GetDrawStringCompanyColour(CompanyID company)
Get the colour for DrawString-subroutines which matches the colour of the company.
void ShowCompanyStations(CompanyID company)
Opens window with list of company's stations.
void InvalidateCompanyWindows(const Company *c)
Refresh all windows owned by a company.
void DirtyCompanyInfrastructureWindows(CompanyID company)
Redraw all windows with company infrastructure counts.
Types related to companies.
Owner
Enum for all companies/owners.
Definition: company_type.h:18
Types related to the graphics and/or input devices.
TextColour
Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palett...
Definition: gfx_type.h:260
Base class for groups and group functions.
uint16_t GroupID
Type for all group identifiers.
Definition: group_type.h:13