OpenTTD Source 20241224-master-gf74b0cf984
RectPadding Struct Reference

Padding dimensions to apply to each side of a Rect. More...

#include <geometry_type.hpp>

Inheritance diagram for RectPadding:
NWidgetPartPaddings

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 {}
 

Detailed Description

Padding dimensions to apply to each side of a Rect.

Definition at line 51 of file geometry_type.hpp.

Member Function Documentation

◆ Horizontal()

constexpr uint RectPadding::Horizontal ( ) const
inlineconstexpr

Get total horizontal padding of RectPadding.

Returns
total horizontal padding.

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().

◆ Vertical()

constexpr uint RectPadding::Vertical ( ) const
inlineconstexpr

Get total vertical padding of RectPadding.

Returns
total vertical padding.

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().

Field Documentation

◆ bottom

uint8_t RectPadding::bottom

Definition at line 55 of file geometry_type.hpp.

◆ left

uint8_t RectPadding::left

Definition at line 52 of file geometry_type.hpp.

◆ right

uint8_t RectPadding::right

Definition at line 54 of file geometry_type.hpp.

◆ top

uint8_t RectPadding::top

Definition at line 53 of file geometry_type.hpp.

◆ zero

const RectPadding RectPadding::zero {}
inlinestatic

Definition at line 72 of file geometry_type.hpp.


The documentation for this struct was generated from the following file: