OpenTTD

Data Structures | Functions | Variables
company_gui.cpp File Reference

Company related GUIs. More...

`#include "stdafx.h"`
`#include "error.h"`
`#include "gui.h"`
`#include "window_gui.h"`
`#include "textbuf_gui.h"`
`#include "viewport_func.h"`
`#include "company_func.h"`
`#include "command_func.h"`
`#include "network/network.h"`
`#include "network/network_gui.h"`
`#include "network/network_func.h"`
`#include "newgrf.h"`
`#include "company_manager_face.h"`
`#include "strings_func.h"`
`#include "date_func.h"`
`#include "widgets/dropdown_type.h"`
`#include "tilehighlight_func.h"`
`#include "company_base.h"`
`#include "core/geometry_func.hpp"`
`#include "object_type.h"`
`#include "rail.h"`
`#include "engine_base.h"`
`#include "window_func.h"`
`#include "road_func.h"`
`#include "water.h"`
`#include "station_func.h"`
`#include "zoom_func.h"`
`#include "widgets/company_widget.h"`
`#include "safeguards.h"`

Go to the source code of this file.

## Data Structures
struct | ExpensesList
| Expense list container. More...
struct | CompanyFinancesWindow
| Window class displaying the company finances. More...
class | DropDownListColourItem
struct | SelectCompanyLiveryWindow
| Company livery colour scheme window. More...
class | SelectCompanyManagerFaceWindow
| Management class for customizing the face of the company manager. More...
struct | CompanyInfrastructureWindow
| Window with detailed information about the company's infrastructure. More...
struct | CompanyWindow
| Window with general information about a company. More...
struct | BuyCompanyWindow

## Functions
static void | DoSelectCompanyManagerFace (Window *parent)
| Open the simple/advanced company manager face selection window. More...
static void | ShowCompanyInfrastructure (CompanyID company)
| Open the infrastructure window of a company. More...
static void | DrawCategories (const Rect &r)
| Draw the expenses categories. More...
static void | DrawPrice (Money amount, int left, int right, int top)
| Draw an amount of money. More...
static void | DrawYearColumn (const Rect &r, int year, const Money(*tbl)[EXPENSES_END])
| Draw a column with prices. More...
void | ShowCompanyFinances (CompanyID company)
| Open the finances window of a company. More...
void | DrawCompanyManagerFace (CompanyManagerFace cmf, int colour, int x, int y)
| Draws the face of a company manager's face. More...
int | GetAmountOwnedBy (const Company *c, Owner owner)
void | ShowCompany (CompanyID company)
| Show the window with the overview of the company. More...
void | DirtyCompanyInfrastructureWindows (CompanyID company)
| Redraw all windows with company infrastructure counts. More...
void | ShowBuyCompanyDialog (CompanyID company)
| Show the query to buy another company. More...

## Variables
static const uint | EXP_LINESPACE = 2
| Company GUI constants. More...
static const uint | EXP_BLOCKSPACE = 10
| Amount of vertical space between two blocks of numbers.
static ExpensesType | _expenses_list_1 []
| Standard unsorted list of expenses. More...
static ExpensesType | _expenses_list_2 []
| Grouped list of expenses. More...
static const ExpensesList | _expenses_list_types []
static const NWidgetPart | _nested_company_finances_widgets []
static WindowDesc | _company_finances_desc (WDP_AUTO, "company_finances", 0, 0, WC_FINANCES, WC_NONE, 0, _nested_company_finances_widgets, lengthof(_nested_company_finances_widgets))
static const StringID | _colour_dropdown []
static const LiveryClass | _livery_class [LS_END]
static const NWidgetPart | _nested_select_company_livery_widgets []
static WindowDesc | _select_company_livery_desc (WDP_AUTO, "company_livery", 0, 0, WC_COMPANY_COLOUR, WC_NONE, 0, _nested_select_company_livery_widgets, lengthof(_nested_select_company_livery_widgets))
static const NWidgetPart | _nested_select_company_manager_face_widgets []
| Nested widget description for the company manager face selection dialog.
static WindowDesc | _select_company_manager_face_desc (WDP_AUTO, "company_face", 0, 0, WC_COMPANY_MANAGER_FACE, WC_NONE, WDF_CONSTRUCTION, _nested_select_company_manager_face_widgets, lengthof(_nested_select_company_manager_face_widgets))
| Company manager face selection window description.
static const NWidgetPart | _nested_company_infrastructure_widgets []
static WindowDesc | _company_infrastructure_desc (WDP_AUTO, "company_infrastructure", 0, 0, WC_COMPANY_INFRASTRUCTURE, WC_NONE, 0, _nested_company_infrastructure_widgets, lengthof(_nested_company_infrastructure_widgets))
static const NWidgetPart | _nested_company_widgets []
static const StringID | _company_view_vehicle_count_strings []
| Strings for the company vehicle counts. More...
static WindowDesc | _company_desc (WDP_AUTO, "company", 0, 0, WC_COMPANY, WC_NONE, 0, _nested_company_widgets, lengthof(_nested_company_widgets))
static const NWidgetPart | _nested_buy_company_widgets []
static WindowDesc | _buy_company_desc (WDP_AUTO, NULL, 0, 0, WC_BUY_COMPANY, WC_NONE, WDF_CONSTRUCTION, _nested_buy_company_widgets, lengthof(_nested_buy_company_widgets))

## Detailed Description

Company related GUIs.

Definition in file company_gui.cpp.

## Function Documentation

## ◆ DirtyCompanyInfrastructureWindows()

void DirtyCompanyInfrastructureWindows | ( | CompanyID | company | ) |

Redraw all windows with company infrastructure counts.

Parameters

  company | The company to redraw the windows of.

Definition at line 2473 of file company_gui.cpp.

References SetWindowDirty(), WC_COMPANY, and WC_COMPANY_INFRASTRUCTURE.

Referenced by CmdBuildRoadDepot(), CmdConvertRail(), and RemoveLock().

## ◆ DoSelectCompanyManagerFace()

static void DoSelectCompanyManagerFace | ( | Window * | parent | ) |
| static

Open the simple/advanced company manager face selection window.

Parameters

  parent | the parent company window
  adv | simple or advanced face selection window
  top | previous top position of the window
  left | previous left position of the window

Definition at line 1516 of file company_gui.cpp.

References BringWindowToFrontById(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), WC_COMPANY_MANAGER_FACE, and Window::window_number.

Referenced by CompanyWindow::OnClick().

## ◆ DrawCategories()

static void DrawCategories | ( | const Rect & | r | ) |
| static

Draw the expenses categories.

Parameters

  r | Available space for drawing.

Note
  The environment must provide padding at the left and right of r.

Definition at line 135 of file company_gui.cpp.

Referenced by CompanyFinancesWindow::DrawWidget().

## ◆ DrawCompanyManagerFace()

void DrawCompanyManagerFace | ( | CompanyManagerFace | cmf,
|  | int | colour,
|  | int | x,
|  | int | y
| ) |  |

Draws the face of a company manager's face.

Parameters

  cmf | the company manager's face
  colour | the (background) colour of the gradient
  x | x-position to draw the face
  y | y-position to draw the face

Definition at line 870 of file company_gui.cpp.

Referenced by ErrmsgWindow::DrawWidget(), CompanyWindow::DrawWidget(), and BuyCompanyWindow::DrawWidget().

## ◆ DrawPrice()

static void DrawPrice | ( | Money | amount,
|  | int | left,
|  | int | right,
|  | int | top
| ) |  |
| static

Draw an amount of money.

Parameters

  amount | Amount of money to draw,
  left | Left coordinate of the space to draw in.
  right | Right coordinate of the space to draw in.
  top | Top coordinate of the space to draw in.

Definition at line 165 of file company_gui.cpp.

References DrawString(), and SetDParam().

## ◆ DrawYearColumn()

static void DrawYearColumn | ( | const Rect & | r,
|  | int | year,
|  | const Money(*) | tbl[EXPENSES_END]
| ) |  |
| static

Draw a column with prices.

Parameters

  r | Available space for drawing.
  year | Year being drawn.
  tbl | Pointer to table of amounts for year.

Note
  The environment must provide padding at the left and right of r.

Definition at line 183 of file company_gui.cpp.

Referenced by CompanyFinancesWindow::DrawWidget().

## ◆ ShowBuyCompanyDialog()

void ShowBuyCompanyDialog | ( | CompanyID | company | ) |

Show the query to buy another company.

Parameters

  company | The company to buy.

Definition at line 2574 of file company_gui.cpp.

## ◆ ShowCompany()

void ShowCompany | ( | CompanyID | company | ) |

Show the window with the overview of the company.

Parameters

  company | The company to show the window for.

Definition at line 2462 of file company_gui.cpp.

References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID().

## ◆ ShowCompanyFinances()

void ShowCompanyFinances | ( | CompanyID | company | ) |

Open the finances window of a company.

Parameters

  company | Company to show finances of.

Precondition
  is company a valid company.

Definition at line 482 of file company_gui.cpp.

References BringWindowToFrontById(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), and WC_FINANCES.

Referenced by MenuClickFinances(), and StatusBarWindow::OnClick().

## ◆ ShowCompanyInfrastructure()

static void ShowCompanyInfrastructure | ( | CompanyID | company | ) |
| static

Open the infrastructure window of a company.

Parameters

  company | Company to show infrastructure of.

Definition at line 1878 of file company_gui.cpp.

References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID().

Referenced by CompanyFinancesWindow::OnClick().

## Variable Documentation

## ◆ _colour_dropdown

const StringID _colour_dropdown[]
| static

Initial value:
= {
STR_COLOUR_DARK_BLUE,
STR_COLOUR_PALE_GREEN,
STR_COLOUR_PINK,
STR_COLOUR_YELLOW,
STR_COLOUR_RED,
STR_COLOUR_LIGHT_BLUE,
STR_COLOUR_GREEN,
STR_COLOUR_DARK_GREEN,
STR_COLOUR_BLUE,
STR_COLOUR_CREAM,
STR_COLOUR_MAUVE,
STR_COLOUR_PURPLE,
STR_COLOUR_ORANGE,
STR_COLOUR_BROWN,
STR_COLOUR_GREY,
STR_COLOUR_WHITE,
}

Definition at line 491 of file company_gui.cpp.

## ◆ _company_view_vehicle_count_strings

const StringID _company_view_vehicle_count_strings[]
| static

Initial value:
= {
STR_COMPANY_VIEW_TRAINS, STR_COMPANY_VIEW_ROAD_VEHICLES, STR_COMPANY_VIEW_SHIPS, STR_COMPANY_VIEW_AIRCRAFT
}

Strings for the company vehicle counts.

Definition at line 1987 of file company_gui.cpp.

## ◆ _expenses_list_1

ExpensesType _expenses_list_1[]
| static

Initial value:
= {
EXPENSES_CONSTRUCTION,
EXPENSES_NEW_VEHICLES,
EXPENSES_TRAIN_RUN,
EXPENSES_ROADVEH_RUN,
EXPENSES_AIRCRAFT_RUN,
EXPENSES_SHIP_RUN,
EXPENSES_PROPERTY,
EXPENSES_TRAIN_INC,
EXPENSES_ROADVEH_INC,
EXPENSES_AIRCRAFT_INC,
EXPENSES_SHIP_INC,
EXPENSES_LOAN_INT,
EXPENSES_OTHER,
}
EXPENSES_TRAIN_RUN
Running costs trains.
Definition: economy_type.h:153
EXPENSES_ROADVEH_INC
Income from road vehicles.
Definition: economy_type.h:159
EXPENSES_SHIP_RUN
Running costs ships.
Definition: economy_type.h:156
EXPENSES_AIRCRAFT_INC
Income from aircrafts.
Definition: economy_type.h:160
EXPENSES_CONSTRUCTION
Construction costs.
Definition: economy_type.h:151
EXPENSES_ROADVEH_RUN
Running costs road vehicles.
Definition: economy_type.h:154
EXPENSES_PROPERTY
Property costs.
Definition: economy_type.h:157
EXPENSES_AIRCRAFT_RUN
Running costs aircrafts.
Definition: economy_type.h:155
EXPENSES_TRAIN_INC
Income from trains.
Definition: economy_type.h:158
EXPENSES_NEW_VEHICLES
New vehicles.
Definition: economy_type.h:152
EXPENSES_SHIP_INC
Income from ships.
Definition: economy_type.h:161
EXPENSES_OTHER
Other expenses.
Definition: economy_type.h:163
EXPENSES_LOAN_INT
Interest payments over the loan.
Definition: economy_type.h:162

Standard unsorted list of expenses.

Definition at line 53 of file company_gui.cpp.

## ◆ _expenses_list_2

ExpensesType _expenses_list_2[]
| static

Initial value:
= {
EXPENSES_TRAIN_INC,
EXPENSES_ROADVEH_INC,
EXPENSES_AIRCRAFT_INC,
EXPENSES_SHIP_INC,
INVALID_EXPENSES,
EXPENSES_TRAIN_RUN,
EXPENSES_ROADVEH_RUN,
EXPENSES_AIRCRAFT_RUN,
EXPENSES_SHIP_RUN,
EXPENSES_PROPERTY,
EXPENSES_LOAN_INT,
INVALID_EXPENSES,
EXPENSES_CONSTRUCTION,
EXPENSES_NEW_VEHICLES,
EXPENSES_OTHER,
INVALID_EXPENSES,
}
EXPENSES_TRAIN_RUN
Running costs trains.
Definition: economy_type.h:153
EXPENSES_ROADVEH_INC
Income from road vehicles.
Definition: economy_type.h:159
EXPENSES_SHIP_RUN
Running costs ships.
Definition: economy_type.h:156
EXPENSES_AIRCRAFT_INC
Income from aircrafts.
Definition: economy_type.h:160
EXPENSES_CONSTRUCTION
Construction costs.
Definition: economy_type.h:151
EXPENSES_ROADVEH_RUN
Running costs road vehicles.
Definition: economy_type.h:154
EXPENSES_PROPERTY
Property costs.
Definition: economy_type.h:157
EXPENSES_AIRCRAFT_RUN
Running costs aircrafts.
Definition: economy_type.h:155
EXPENSES_TRAIN_INC
Income from trains.
Definition: economy_type.h:158
EXPENSES_NEW_VEHICLES
New vehicles.
Definition: economy_type.h:152
EXPENSES_SHIP_INC
Income from ships.
Definition: economy_type.h:161
INVALID_EXPENSES
Invalid expense type.
Definition: economy_type.h:165
EXPENSES_OTHER
Other expenses.
Definition: economy_type.h:163
EXPENSES_LOAN_INT
Interest payments over the loan.
Definition: economy_type.h:162

Grouped list of expenses.

Definition at line 70 of file company_gui.cpp.

## ◆ _expenses_list_types

const ExpensesList _expenses_list_types[]
| static

Initial value:
= {
ExpensesList(_expenses_list_1, lengthof(_expenses_list_1), 0),
ExpensesList(_expenses_list_2, lengthof(_expenses_list_2), 3),
}
ExpensesList
Expense list container.
Definition: company_gui.cpp:90
_expenses_list_2
static ExpensesType _expenses_list_2[]
Grouped list of expenses.
Definition: company_gui.cpp:70
_expenses_list_1
static ExpensesType _expenses_list_1[]
Standard unsorted list of expenses.
Definition: company_gui.cpp:53
lengthof
#define lengthof(x)
Return the length of an fixed size array.
Definition: depend.cpp:42

Definition at line 125 of file company_gui.cpp.

## ◆ _livery_class

const LiveryClass _livery_class[LS_END]
| static

Initial value:
= {
LC_OTHER,
LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL, LC_RAIL,
LC_ROAD, LC_ROAD,
LC_SHIP, LC_SHIP,
LC_AIRCRAFT, LC_AIRCRAFT, LC_AIRCRAFT,
LC_ROAD, LC_ROAD,
}

Definition at line 511 of file company_gui.cpp.

## ◆ _nested_buy_company_widgets

const NWidgetPart _nested_buy_company_widgets[]
| static

Initial value:
= {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_LIGHT_BLUE),
NWidget(WWT_CAPTION, COLOUR_LIGHT_BLUE, WID_BC_CAPTION), SetDataTip(STR_ERROR_MESSAGE_CAPTION_OTHER_COMPANY, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_LIGHT_BLUE),
NWidget(NWID_VERTICAL), SetPIP(8, 8, 8),
NWidget(NWID_HORIZONTAL), SetPIP(8, 10, 8),
NWidget(WWT_EMPTY, INVALID_COLOUR, WID_BC_FACE), SetFill(0, 1),
NWidget(WWT_EMPTY, INVALID_COLOUR, WID_BC_QUESTION), SetMinimalSize(240, 0), SetFill(1, 1),
EndContainer(),
NWidget(NWID_HORIZONTAL, NC_EQUALSIZE), SetPIP(100, 10, 100),
NWidget(WWT_TEXTBTN, COLOUR_LIGHT_BLUE, WID_BC_NO), SetMinimalSize(60, 12), SetDataTip(STR_QUIT_NO, STR_NULL), SetFill(1, 0),
NWidget(WWT_TEXTBTN, COLOUR_LIGHT_BLUE, WID_BC_YES), SetMinimalSize(60, 12), SetDataTip(STR_QUIT_YES, STR_NULL), SetFill(1, 0),
EndContainer(),
EndContainer(),
EndContainer(),
}
WWT_EMPTY
Empty widget, place holder to reserve space in widget array.
Definition: widget_type.h:48
NWID_HORIZONTAL
Horizontal container.
Definition: widget_type.h:75
WWT_CLOSEBOX
Close box (at top-left of a window)
Definition: widget_type.h:69
WID_BC_CAPTION
Caption of window.
Definition: company_widget.h:185
WID_BC_NO
No button.
Definition: company_widget.h:188
WID_BC_YES
Yes button.
Definition: company_widget.h:189
SetDataTip
static NWidgetPart SetDataTip(uint32 data, StringID tip)
Widget part function for setting the data and tooltip.
Definition: widget_type.h:1014
SetMinimalSize
static NWidgetPart SetMinimalSize(int16 x, int16 y)
Widget part function for setting the minimal size.
Definition: widget_type.h:947
WWT_PANEL
Simple depressed panel.
Definition: widget_type.h:50
NWidget
static NWidgetPart NWidget(WidgetType tp, Colours col, int16 idx=-1)
Widget part function for starting a new &#39;real&#39; widget.
Definition: widget_type.h:1114
WWT_CAPTION
Window caption (window title between closebox and stickybox)
Definition: widget_type.h:61
NWID_VERTICAL
Vertical container.
Definition: widget_type.h:77
EndContainer
static NWidgetPart EndContainer()
Widget part function for denoting the end of a container (horizontal, vertical, WWT_FRAME, WWT_INSET, or WWT_PANEL).
Definition: widget_type.h:999
WID_BC_FACE
Face button.
Definition: company_widget.h:186
SetFill
static NWidgetPart SetFill(uint fill_x, uint fill_y)
Widget part function for setting filling.
Definition: widget_type.h:983
WID_BC_QUESTION
Question text.
Definition: company_widget.h:187
NC_EQUALSIZE
Value of the NCB_EQUALSIZE flag.
Definition: widget_type.h:429
SetPIP
static NWidgetPart SetPIP(uint8 pre, uint8 inter, uint8 post)
Widget part function for setting a pre/inter/post spaces.
Definition: widget_type.h:1076
WWT_TEXTBTN
(Toggle) Button with text
Definition: widget_type.h:55

Definition at line 2544 of file company_gui.cpp.

## ◆ _nested_select_company_livery_widgets

const NWidgetPart _nested_select_company_livery_widgets[]
| static

Initial value:
= {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
NWidget(WWT_CAPTION, COLOUR_GREY, WID_SCL_CAPTION), SetDataTip(STR_LIVERY_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
EndContainer(),
NWidget(NWID_HORIZONTAL),
NWidget(WWT_IMGBTN, COLOUR_GREY, WID_SCL_CLASS_GENERAL), SetMinimalSize(22, 22), SetFill(0, 1), SetDataTip(SPR_IMG_COMPANY_GENERAL, STR_LIVERY_GENERAL_TOOLTIP),
NWidget(WWT_IMGBTN, COLOUR_GREY, WID_SCL_CLASS_RAIL), SetMinimalSize(22, 22), SetFill(0, 1), SetDataTip(SPR_IMG_TRAINLIST, STR_LIVERY_TRAIN_TOOLTIP),
NWidget(WWT_IMGBTN, COLOUR_GREY, WID_SCL_CLASS_ROAD), SetMinimalSize(22, 22), SetFill(0, 1), SetDataTip(SPR_IMG_TRUCKLIST, STR_LIVERY_ROAD_VEHICLE_TOOLTIP),
NWidget(WWT_IMGBTN, COLOUR_GREY, WID_SCL_CLASS_SHIP), SetMinimalSize(22, 22), SetFill(0, 1), SetDataTip(SPR_IMG_SHIPLIST, STR_LIVERY_SHIP_TOOLTIP),
NWidget(WWT_IMGBTN, COLOUR_GREY, WID_SCL_CLASS_AIRCRAFT), SetMinimalSize(22, 22), SetFill(0, 1), SetDataTip(SPR_IMG_AIRPLANESLIST, STR_LIVERY_AIRCRAFT_TOOLTIP),
NWidget(WWT_PANEL, COLOUR_GREY), SetMinimalSize(90, 22), SetFill(1, 1), EndContainer(),
EndContainer(),
NWidget(NWID_HORIZONTAL),
NWidget(WWT_PANEL, COLOUR_GREY, WID_SCL_SPACER_DROPDOWN), SetMinimalSize(150, 12), SetFill(1, 1), EndContainer(),
NWidget(WWT_DROPDOWN, COLOUR_GREY, WID_SCL_PRI_COL_DROPDOWN), SetMinimalSize(125, 12), SetFill(0, 1), SetDataTip(STR_BLACK_STRING, STR_LIVERY_PRIMARY_TOOLTIP),
NWidget(WWT_DROPDOWN, COLOUR_GREY, WID_SCL_SEC_COL_DROPDOWN), SetMinimalSize(125, 12), SetFill(0, 1),
SetDataTip(STR_BLACK_STRING, STR_LIVERY_SECONDARY_TOOLTIP),
EndContainer(),
NWidget(WWT_MATRIX, COLOUR_GREY, WID_SCL_MATRIX), SetMinimalSize(275, 15), SetFill(1, 0), SetMatrixDataTip(1, 1, STR_LIVERY_PANEL_TOOLTIP),
}
WID_SCL_CLASS_RAIL
Class rail.
Definition: company_widget.h:85
WID_SCL_SEC_COL_DROPDOWN
Dropdown for secondary colour.
Definition: company_widget.h:91
NWID_HORIZONTAL
Horizontal container.
Definition: widget_type.h:75
WID_SCL_CAPTION
Caption of window.
Definition: company_widget.h:83
WWT_CLOSEBOX
Close box (at top-left of a window)
Definition: widget_type.h:69
WID_SCL_SPACER_DROPDOWN
Spacer for dropdown.
Definition: company_widget.h:89
SetMatrixDataTip
static NWidgetPart SetMatrixDataTip(uint8 cols, uint8 rows, StringID tip)
Widget part function for setting the data and tooltip of WWT_MATRIX widgets.
Definition: widget_type.h:1032
WID_SCL_CLASS_ROAD
Class road.
Definition: company_widget.h:86
SetDataTip
static NWidgetPart SetDataTip(uint32 data, StringID tip)
Widget part function for setting the data and tooltip.
Definition: widget_type.h:1014
SetMinimalSize
static NWidgetPart SetMinimalSize(int16 x, int16 y)
Widget part function for setting the minimal size.
Definition: widget_type.h:947
WWT_PANEL
Simple depressed panel.
Definition: widget_type.h:50
NWidget
static NWidgetPart NWidget(WidgetType tp, Colours col, int16 idx=-1)
Widget part function for starting a new &#39;real&#39; widget.
Definition: widget_type.h:1114
WID_SCL_PRI_COL_DROPDOWN
Dropdown for primary colour.
Definition: company_widget.h:90
WWT_MATRIX
Grid of rows and columns.
Definition: widget_type.h:59
WWT_CAPTION
Window caption (window title between closebox and stickybox)
Definition: widget_type.h:61
WID_SCL_CLASS_GENERAL
Class general.
Definition: company_widget.h:84
EndContainer
static NWidgetPart EndContainer()
Widget part function for denoting the end of a container (horizontal, vertical, WWT_FRAME, WWT_INSET, or WWT_PANEL).
Definition: widget_type.h:999
WWT_DROPDOWN
Drop down list.
Definition: widget_type.h:70
WID_SCL_CLASS_AIRCRAFT
Class aircraft.
Definition: company_widget.h:88
SetFill
static NWidgetPart SetFill(uint fill_x, uint fill_y)
Widget part function for setting filling.
Definition: widget_type.h:983
WID_SCL_MATRIX
Matrix.
Definition: company_widget.h:92
WWT_IMGBTN
(Toggle) Button with image
Definition: widget_type.h:52
WID_SCL_CLASS_SHIP
Class ship.
Definition: company_widget.h:87

Definition at line 834 of file company_gui.cpp.

## ◆ EXP_LINESPACE

const uint EXP_LINESPACE = 2
| static

Company GUI constants.

Amount of vertical space for a horizontal (sub-)total line.

Definition at line 46 of file company_gui.cpp.