|
OpenTTD Source 15.0-beta1
|
Expense list container. More...
Public Member Functions | |
| ExpensesList (StringID title, const std::initializer_list< ExpensesType > &list) | |
| uint | GetHeight () const |
| uint | GetListWidth () const |
| Compute width of the expenses categories in pixels. | |
Data Fields | |
| const StringID | title |
| StringID of list title. | |
| const std::initializer_list< ExpensesType > & | items |
| List of expenses types. | |
Expense list container.
Definition at line 85 of file company_gui.cpp.
|
inline |
Definition at line 89 of file company_gui.cpp.
|
inline |
Definition at line 93 of file company_gui.cpp.
|
inline |
Compute width of the expenses categories in pixels.
Definition at line 100 of file company_gui.cpp.
References GetStringBoundingBox(), and items.
| const std::initializer_list<ExpensesType>& ExpensesList::items |
List of expenses types.
Definition at line 87 of file company_gui.cpp.
Referenced by DrawCategory(), DrawYearCategory(), and GetListWidth().
| const StringID ExpensesList::title |
StringID of list title.
Definition at line 86 of file company_gui.cpp.