OpenTTD Source
20241120-master-g6d3adc6169
|
Padding dimensions to apply to each side of a Rect. More...
#include <geometry_type.hpp>
Public Member Functions | |
constexpr uint | Horizontal () const |
Get total horizontal padding of RectPadding. More... | |
constexpr uint | Vertical () const |
Get total vertical padding of RectPadding. More... | |
Data Fields | |
uint8_t | left |
uint8_t | top |
uint8_t | right |
uint8_t | bottom |
Static Public Attributes | |
static const RectPadding | zero {} |
Padding dimensions to apply to each side of a Rect.
Definition at line 51 of file geometry_type.hpp.
|
inlineconstexpr |
Get total horizontal padding of RectPadding.
Definition at line 63 of file geometry_type.hpp.
Referenced by TextfileWindow::CheckHyperlinkClick(), GoalListWindow::DrawListColumn(), StoryBookWindow::GetAvailablePageContentWidth(), GetDropDownListDimension(), IndustryDirectoryWindow::GetIndustryListWidth(), SelectCompanyManagerFaceWindow::OnInit(), IndustryCargoesWindow::OnInit(), TextfileWindow::ReflowContent(), NWidgetLeaf::SetupSmallestSize(), and DropdownWindow::UpdateSizeAndPosition().
|
inlineconstexpr |
Get total vertical padding of RectPadding.
Definition at line 69 of file geometry_type.hpp.
Referenced by NetworkContentListWindow::DrawDetails(), NetworkContentListWindow::DrawMatrix(), SmallMapWindow::GetLegendHeight(), StoryBookWindow::GetPageElementFloatWidth(), StoryBookWindow::GetPageElementHeight(), GetVehicleListHeight(), SelectCompanyManagerFaceWindow::OnInit(), IndustryCargoesWindow::OnInit(), NWidgetLeaf::SetupSmallestSize(), and DropdownWindow::UpdateSizeAndPosition().