OpenTTD Source 20241224-master-gf74b0cf984
|
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. | |
constexpr uint | Vertical () const |
Get total vertical padding of RectPadding. | |
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(), VehicleDetailsWindow::DrawWidget(), StoryBookWindow::GetAvailablePageContentWidth(), QueryString::GetBoundingRect(), NetworkClientListWindow::GetButtonAtPoint(), QueryString::GetCaretPosition(), QueryString::GetCharAtPosition(), GetDropDownListDimension(), MakeCompanyButtonRows(), SelectCompanyManagerFaceWindow::OnInit(), IndustryCargoesWindow::OnInit(), SmallMapWindow::OnInit(), TextfileWindow::ReflowContent(), NWidgetBackground::SetupSmallestSize(), NWidgetLeaf::SetupSmallestSize(), DropdownWindow::UpdateSizeAndPosition(), BuildAirportWindow::UpdateWidgetSize(), BootstrapErrorWindow::UpdateWidgetSize(), BootstrapAskForDownloadWindow::UpdateWidgetSize(), BuildDocksDepotWindow::UpdateWidgetSize(), GenerateLandscapeWindow::UpdateWidgetSize(), CreateScenarioWindow::UpdateWidgetSize(), GenerateProgressWindow::UpdateWidgetSize(), GoalListWindow::UpdateWidgetSize(), BaseGraphWindow::UpdateWidgetSize(), PaymentRatesGraphWindow::UpdateWidgetSize(), PerformanceRatingDetailWindow::UpdateWidgetSize(), IndustryProductionGraphWindow::UpdateWidgetSize(), IndustryCargoesWindow::UpdateWidgetSize(), SelectGameWindow::UpdateWidgetSize(), PerformanceLeagueWindow::UpdateWidgetSize(), ScriptLeagueWindow::UpdateWidgetSize(), LandInfoWindow::UpdateWidgetSize(), TooltipsWindow::UpdateWidgetSize(), BaseNetworkContentDownloadStatusWindow::UpdateWidgetSize(), NetworkJoinStatusWindow::UpdateWidgetSize(), NewGRFParametersWindow::UpdateWidgetSize(), NewGRFWindow::UpdateWidgetSize(), ScanProgressWindow::UpdateWidgetSize(), NewsWindow::UpdateWidgetSize(), BuildObjectWindow::UpdateWidgetSize(), PickerWindow::UpdateWidgetSize(), BuildRailStationWindow::UpdateWidgetSize(), BuildSignalWindow::UpdateWidgetSize(), BuildRailDepotWindow::UpdateWidgetSize(), BuildRoadDepotWindow::UpdateWidgetSize(), BuildRoadStationWindow::UpdateWidgetSize(), and SubsidyListWindow::UpdateWidgetSize().
|
inlineconstexpr |
Get total vertical padding of RectPadding.
Definition at line 69 of file geometry_type.hpp.
Referenced by VehicleGroupWindow::ComputeGroupInfoSize(), NetworkContentListWindow::DrawDetails(), NetworkContentListWindow::DrawMatrix(), NetworkGameWindow::DrawServerLine(), BaseGraphWindow::DrawWidget(), DropdownWindow::FitAvailableHeight(), SmallMapWindow::GetLegendHeight(), StoryBookWindow::GetPageElementFloatWidth(), StoryBookWindow::GetPageElementHeight(), GetVehicleListHeight(), MakeCompanyButtonRows(), SelectCompanyManagerFaceWindow::OnInit(), IndustryCargoesWindow::OnInit(), NWidgetBackground::SetupSmallestSize(), NWidgetLeaf::SetupSmallestSize(), DropdownWindow::UpdateSizeAndPosition(), BuildAirportWindow::UpdateWidgetSize(), BootstrapErrorWindow::UpdateWidgetSize(), BootstrapAskForDownloadWindow::UpdateWidgetSize(), CheatWindow::UpdateWidgetSize(), BuildDocksDepotWindow::UpdateWidgetSize(), GenerateLandscapeWindow::UpdateWidgetSize(), CreateScenarioWindow::UpdateWidgetSize(), GenerateProgressWindow::UpdateWidgetSize(), GoalListWindow::UpdateWidgetSize(), BaseGraphWindow::UpdateWidgetSize(), PaymentRatesGraphWindow::UpdateWidgetSize(), PerformanceRatingDetailWindow::UpdateWidgetSize(), IndustryProductionGraphWindow::UpdateWidgetSize(), IndustryCargoesWindow::UpdateWidgetSize(), SelectGameWindow::UpdateWidgetSize(), PerformanceLeagueWindow::UpdateWidgetSize(), ScriptLeagueWindow::UpdateWidgetSize(), LandInfoWindow::UpdateWidgetSize(), TooltipsWindow::UpdateWidgetSize(), BaseNetworkContentDownloadStatusWindow::UpdateWidgetSize(), NetworkGameWindow::UpdateWidgetSize(), NetworkClientListWindow::UpdateWidgetSize(), NetworkJoinStatusWindow::UpdateWidgetSize(), NewGRFInspectWindow::UpdateWidgetSize(), NewGRFParametersWindow::UpdateWidgetSize(), NewGRFWindow::UpdateWidgetSize(), ScanProgressWindow::UpdateWidgetSize(), NewsWindow::UpdateWidgetSize(), MessageHistoryWindow::UpdateWidgetSize(), BuildObjectWindow::UpdateWidgetSize(), PickerWindow::UpdateWidgetSize(), BuildRailStationWindow::UpdateWidgetSize(), BuildRailDepotWindow::UpdateWidgetSize(), BuildRoadDepotWindow::UpdateWidgetSize(), BuildRoadStationWindow::UpdateWidgetSize(), ScriptDebugWindow::UpdateWidgetSize(), GameSettingsWindow::UpdateWidgetSize(), StoryBookWindow::UpdateWidgetSize(), SubsidyListWindow::UpdateWidgetSize(), and TextfileWindow::UpdateWidgetSize().
uint8_t RectPadding::bottom |
Definition at line 55 of file geometry_type.hpp.
uint8_t RectPadding::left |
Definition at line 52 of file geometry_type.hpp.
uint8_t RectPadding::right |
Definition at line 54 of file geometry_type.hpp.
uint8_t RectPadding::top |
Definition at line 53 of file geometry_type.hpp.
|
inlinestatic |
Definition at line 72 of file geometry_type.hpp.