ExpensesList Struct Reference

Expense list container. More...

Public Member Functions

 ExpensesList (ExpensesType *et, int length, int num_subtotals)
uint GetHeight () const
uint GetCategoriesWidth () const
 Compute width of the expenses categories in pixels.

Data Fields

const ExpensesTypeet
 Expenses items.
const uint length
 Number of items in list.
const uint num_subtotals
 Number of sub-totals in the list.

Detailed Description

Expense list container.

Definition at line 81 of file company_gui.cpp.


Member Function Documentation

uint ExpensesList::GetCategoriesWidth (  )  const [inline]

Compute width of the expenses categories in pixels.

Definition at line 97 of file company_gui.cpp.

References et, GetStringBoundingBox(), INVALID_EXPENSES, length, and max().

Referenced by CompanyFinancesWindow::UpdateWidgetSize().


The documentation for this struct was generated from the following file:

Generated on Fri Jun 3 05:19:54 2011 for OpenTTD by  doxygen 1.6.1