OpenTTD Source
20241121-master-g67a0fccfad
|
Geometry functions. More...
#include "geometry_type.hpp"
Go to the source code of this file.
Functions | |
Dimension | maxdim (const Dimension &d1, const Dimension &d2) |
Compute bounding box of both dimensions. More... | |
bool | IsEmptyRect (const Rect &r) |
Check if a rectangle is empty. More... | |
Rect | BoundingRect (const Rect &r1, const Rect &r2) |
Compute the bounding rectangle around two rectangles. More... | |
Geometry functions.
Definition in file geometry_func.hpp.
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().
|
inline |
Check if a rectangle is empty.
r | Rectangle to check. |
Definition at line 22 of file geometry_func.hpp.
Referenced by BoundingRect(), VideoDriver_SDL_Default::Paint(), VideoDriver_Win32GDI::Paint(), and OpenGLBackend::ReleaseVideoBuffer().
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(), GetStringListBoundingBox(), SelectCompanyManagerFaceWindow::OnInit(), DepotWindow::OnInit(), IndustryCargoesWindow::OnInit(), NetworkContentListWindow::OnInit(), GameSettingsWindow::OnInit(), NWidgetBackground::SetupSmallestSize(), and NWidgetLeaf::SetupSmallestSize().