|
OpenTTD Source 20251117-master-g7398d2e290
|
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 90 of file company_gui.cpp.
|
inline |
Definition at line 94 of file company_gui.cpp.
|
inline |
Definition at line 98 of file company_gui.cpp.
|
inline |
Compute width of the expenses categories in pixels.
Definition at line 105 of file company_gui.cpp.
References GetStringBoundingBox(), and items.
| const std::initializer_list<ExpensesType>& ExpensesList::items |
List of expenses types.
Definition at line 92 of file company_gui.cpp.
Referenced by DrawCategory(), DrawYearCategory(), and GetListWidth().
| const StringID ExpensesList::title |
StringID of list title.
Definition at line 91 of file company_gui.cpp.