|
OpenTTD Source 20251117-master-g7398d2e290
|
Geometry functions. More...
#include "../stdafx.h"#include "geometry_func.hpp"#include "math_func.hpp"#include "../safeguards.h"Go to the source code of this file.
Functions | |
| Dimension | maxdim (const Dimension &d1, const Dimension &d2) |
| Compute bounding box of both dimensions. | |
| Rect | BoundingRect (const Rect &r1, const Rect &r2) |
| Compute the bounding rectangle around two rectangles. | |
Geometry functions.
Definition in file geometry_func.cpp.
Compute the bounding rectangle around two rectangles.
| r1 | First rectangle. |
| r2 | Second rectangle. |
Definition at line 36 of file geometry_func.cpp.
References IsEmptyRect().
Referenced by VideoDriver_SDL_Base::MakeDirty(), and VideoDriver_Win32Base::MakeDirty().
Compute bounding box of both dimensions.
| d1 | First dimension. |
| d2 | Second dimension. |
Definition at line 22 of file geometry_func.cpp.
Referenced by VehicleGroupWindow::ComputeGroupInfoSize(), BaseVehicleListWindow::GetActionDropdownSize(), GetLargestCargoIconSize(), GetRailTypeDropDownList(), GetStringListBoundingBox(), DepotWindow::OnInit(), IndustryCargoesWindow::OnInit(), NetworkContentListWindow::OnInit(), GameOptionsWindow::OnInit(), NWidgetBackground::SetupSmallestSize(), NWidgetLeaf::SetupSmallestSize(), AIConfigWindow::UpdateWidgetSize(), BuildAirportWindow::UpdateWidgetSize(), ReplaceVehicleWindow::UpdateWidgetSize(), BootstrapAskForDownloadWindow::UpdateWidgetSize(), BuildBridgeWindow::UpdateWidgetSize(), BuildVehicleWindow::UpdateWidgetSize(), SelectCompanyLiveryWindow::UpdateWidgetSize(), SelectCompanyManagerFaceWindow::UpdateWidgetSize(), CompanyWindow::UpdateWidgetSize(), SetDateWindow::UpdateWidgetSize(), ErrmsgWindow::UpdateWidgetSize(), SaveLoadWindow::UpdateWidgetSize(), GenerateLandscapeWindow::UpdateWidgetSize(), CreateScenarioWindow::UpdateWidgetSize(), GoalListWindow::UpdateWidgetSize(), BaseCargoGraphWindow::UpdateWidgetSize(), VehicleGroupWindow::UpdateWidgetSize(), BuildIndustryWindow::UpdateWidgetSize(), IndustryDirectoryWindow::UpdateWidgetSize(), LinkGraphLegendWindow::UpdateWidgetSize(), AboutWindow::UpdateWidgetSize(), MusicTrackSelectionWindow::UpdateWidgetSize(), MusicWindow::UpdateWidgetSize(), NetworkContentListWindow::UpdateWidgetSize(), NetworkGameWindow::UpdateWidgetSize(), NetworkStartServerWindow::UpdateWidgetSize(), NetworkClientListWindow::UpdateWidgetSize(), NetworkJoinStatusWindow::UpdateWidgetSize(), SpriteAlignerWindow::UpdateWidgetSize(), NewGRFParametersWindow::UpdateWidgetSize(), NewGRFWindow::UpdateWidgetSize(), NewsWindow::UpdateWidgetSize(), OrdersWindow::UpdateWidgetSize(), GameOptionsWindow::UpdateWidgetSize(), CustomCurrencyWindow::UpdateWidgetSize(), SignListWindow::UpdateWidgetSize(), CompanyStationsWindow::UpdateWidgetSize(), SelectStationWindow< T >::UpdateWidgetSize(), StatusBarWindow::UpdateWidgetSize(), StoryBookWindow::UpdateWidgetSize(), SubsidyListWindow::UpdateWidgetSize(), TownAuthorityWindow::UpdateWidgetSize(), TownDirectoryWindow::UpdateWidgetSize(), VehicleListWindow::UpdateWidgetSize(), and VehicleDetailsWindow::UpdateWidgetSize().