|
OpenTTD Source
14.0-beta3
|
#include "cargo_type.h"#include "timer/timer_game_calendar.h"#include "economy_type.h"#include "sortlist_type.h"#include "vehicle_base.h"#include "vehiclelist.h"#include "window_gui.h"#include "widgets/dropdown_type.h"Go to the source code of this file.
Data Structures | |
| struct | GUIVehicleGroup |
| struct | BaseVehicleListWindow |
| struct | Sorting |
Typedefs | |
| typedef GUIList< const Vehicle *, std::nullptr_t, CargoID > | GUIVehicleList |
| typedef GUIList< GUIVehicleGroup, std::nullptr_t, CargoID > | GUIVehicleGroupList |
Functions | |
| uint | GetVehicleListHeight (VehicleType type, uint divisor=1) |
| Get the height of a vehicle in the vehicle list GUIs. More... | |
Variables | |
| BaseVehicleListWindow::GroupBy | _grouping [VLT_END][VEH_COMPANY_END] |
| Sorting | _sorting [BaseVehicleListWindow::GB_END] |
Functions/classes shared between the different vehicle list GUIs.
Definition in file vehicle_gui_base.h.
| uint GetVehicleListHeight | ( | VehicleType | type, |
| uint | divisor | ||
| ) |
Get the height of a vehicle in the vehicle list GUIs.
| type | the vehicle type to look at |
| divisor | the resulting height must be dividable by this |
Definition at line 1670 of file vehicle_gui.cpp.
References FS_SMALL, GetCharacterHeight(), GetVehicleHeight(), WidgetDimensions::matrix, WidgetDimensions::scaled, ScaleGUITrad(), VEH_SHIP, and RectPadding::Vertical().