OpenTTD Source 20241224-master-gf74b0cf984
WidgetDimensions Class Reference

Data Fields

RectPadding imgbtn
 Padding around image button image.
 
RectPadding inset
 Padding inside inset container.
 
RectPadding vscrollbar
 Padding inside vertical scrollbar buttons.
 
RectPadding hscrollbar
 Padding inside horizontal scrollbar buttons.
 
RectPadding bevel
 Bevel thickness, affected by "scaled bevels" game option.
 
RectPadding fullbevel
 Always-scaled bevel thickness.
 
RectPadding framerect
 Standard padding inside many panels.
 
RectPadding frametext
 Padding inside frame with text.
 
RectPadding matrix
 Padding of WWT_MATRIX items.
 
RectPadding shadebox
 Padding around image in shadebox widget.
 
RectPadding stickybox
 Padding around image in stickybox widget.
 
RectPadding debugbox
 Padding around image in debugbox widget.
 
RectPadding defsizebox
 Padding around image in defsizebox widget.
 
RectPadding resizebox
 Padding around image in resizebox widget.
 
RectPadding closebox
 Padding around image in closebox widget.
 
RectPadding captiontext
 Padding for text within caption widget.
 
RectPadding dropdowntext
 Padding of drop down list item.
 
RectPadding dropdownlist
 Padding of complete drop down list.
 
RectPadding modalpopup
 Spacing for popup warning/information windows.
 
RectPadding picker
 Padding for a picker (dock, station, etc) window.
 
RectPadding sparse
 Padding used for 'sparse' widget window, usually containing multiple frames.
 
RectPadding sparse_resize
 Padding used for a resizeable 'sparse' widget window, usually containing multiple frames.
 
int vsep_picker
 Vertical spacing of picker-window widgets.
 
int vsep_normal
 Normal vertical spacing.
 
int vsep_sparse
 Normal vertical spacing for 'sparse' widget window.
 
int vsep_wide
 Wide vertical spacing.
 
int hsep_normal
 Normal horizontal spacing.
 
int hsep_wide
 Wide horizontal spacing.
 
int hsep_indent
 Width of identation for tree layouts.
 

Static Public Attributes

static const WidgetDimensions unscaled
 Unscaled widget dimensions.
 
static WidgetDimensions scaled = {}
 Widget dimensions scaled for current zoom level.
 
static constexpr float ASPECT_LOCATION = 12.f / 14.f
 
static constexpr float ASPECT_RENAME = 12.f / 14.f
 
static constexpr float ASPECT_SETTINGS_BUTTON = 21.f / 12.f
 
static constexpr float ASPECT_TOGGLE_SIZE = 12.f / 14.f
 
static constexpr float ASPECT_LEFT_RIGHT_BUTTON = 8.f / 12.f
 
static constexpr float ASPECT_UP_DOWN_BUTTON = 11.f / 12.f
 
static constexpr float ASPECT_VEHICLE_ICON = 15.f / 12.f
 
static constexpr float ASPECT_VEHICLE_FLAG = 11.f / 12.f
 

Private Attributes

friend NWidgetLeaf
 

Static Private Attributes

static constexpr uint WD_SHADEBOX_WIDTH = 12
 Distances used in drawing widgets.
 
static constexpr uint WD_STICKYBOX_WIDTH = 12
 Minimum width of a standard sticky box widget.
 
static constexpr uint WD_DEBUGBOX_WIDTH = 12
 Minimum width of a standard debug box widget.
 
static constexpr uint WD_DEFSIZEBOX_WIDTH = 12
 Minimum width of a standard defsize box widget.
 
static constexpr uint WD_RESIZEBOX_WIDTH = 12
 Minimum width of a resize box widget.
 
static constexpr uint WD_CLOSEBOX_WIDTH = 11
 Minimum width of a close box widget.
 
static constexpr uint WD_CAPTION_HEIGHT = 14
 Minimum height of a title bar.
 
static constexpr uint WD_DROPDOWN_HEIGHT = 12
 Minimum height of a drop down widget.
 

Detailed Description

Definition at line 34 of file window_gui.h.

Field Documentation

◆ ASPECT_LEFT_RIGHT_BUTTON

constexpr float WidgetDimensions::ASPECT_LEFT_RIGHT_BUTTON = 8.f / 12.f
staticconstexpr

Definition at line 74 of file window_gui.h.

◆ ASPECT_LOCATION

constexpr float WidgetDimensions::ASPECT_LOCATION = 12.f / 14.f
staticconstexpr

Definition at line 70 of file window_gui.h.

◆ ASPECT_RENAME

constexpr float WidgetDimensions::ASPECT_RENAME = 12.f / 14.f
staticconstexpr

Definition at line 71 of file window_gui.h.

◆ ASPECT_SETTINGS_BUTTON

constexpr float WidgetDimensions::ASPECT_SETTINGS_BUTTON = 21.f / 12.f
staticconstexpr

Definition at line 72 of file window_gui.h.

◆ ASPECT_TOGGLE_SIZE

constexpr float WidgetDimensions::ASPECT_TOGGLE_SIZE = 12.f / 14.f
staticconstexpr

Definition at line 73 of file window_gui.h.

◆ ASPECT_UP_DOWN_BUTTON

constexpr float WidgetDimensions::ASPECT_UP_DOWN_BUTTON = 11.f / 12.f
staticconstexpr

Definition at line 75 of file window_gui.h.

◆ ASPECT_VEHICLE_FLAG

constexpr float WidgetDimensions::ASPECT_VEHICLE_FLAG = 11.f / 12.f
staticconstexpr

Definition at line 77 of file window_gui.h.

◆ ASPECT_VEHICLE_ICON

constexpr float WidgetDimensions::ASPECT_VEHICLE_ICON = 15.f / 12.f
staticconstexpr

Definition at line 76 of file window_gui.h.

◆ bevel

◆ captiontext

RectPadding WidgetDimensions::captiontext

Padding for text within caption widget.

Definition at line 51 of file window_gui.h.

Referenced by DrawCaption(), NWidgetLeaf::SetupSmallestSize(), SetupWidgetDimensions(), and NewsWindow::UpdateWidgetSize().

◆ closebox

RectPadding WidgetDimensions::closebox

Padding around image in closebox widget.

Definition at line 50 of file window_gui.h.

Referenced by NWidgetLeaf::SetupSmallestSize(), and SetupWidgetDimensions().

◆ debugbox

RectPadding WidgetDimensions::debugbox

Padding around image in debugbox widget.

Definition at line 47 of file window_gui.h.

Referenced by NWidgetLeaf::SetupSmallestSize(), and SetupWidgetDimensions().

◆ defsizebox

RectPadding WidgetDimensions::defsizebox

Padding around image in defsizebox widget.

Definition at line 48 of file window_gui.h.

Referenced by NWidgetLeaf::SetupSmallestSize(), and SetupWidgetDimensions().

◆ dropdownlist

RectPadding WidgetDimensions::dropdownlist

◆ dropdowntext

RectPadding WidgetDimensions::dropdowntext

◆ framerect

RectPadding WidgetDimensions::framerect

Standard padding inside many panels.

Definition at line 42 of file window_gui.h.

Referenced by VehicleGroupWindow::ComputeGroupInfoSize(), CargoesField::Draw(), StationViewWindow::DrawAcceptedCargo(), NetworkClientListWindow::DrawButtons(), StationViewWindow::DrawCargoRatings(), VehicleGroupWindow::DrawGroupInfo(), IndustryViewWindow::DrawInfo(), GoalListWindow::DrawListColumn(), BaseVehicleListWindow::DrawVehicleListItems(), ReplaceVehicleWindow::DrawWidget(), BaseGraphWindow::DrawWidget(), TooltipsWindow::DrawWidget(), MusicWindow::DrawWidget(), NetworkStartServerWindow::DrawWidget(), NewGRFParametersWindow::DrawWidget(), TownAuthorityWindow::DrawWidget(), RefitWindow::DrawWidget(), VehicleDetailsWindow::DrawWidget(), NetworkClientListWindow::GetButtonAtPoint(), SmallMapWindow::GetLegendHeight(), SmallMapWindow::GetMinLegendWidth(), StoryBookWindow::GetPageElementFloatWidth(), StoryBookWindow::GetPageElementHeight(), SmallMapWindow::GetPositionOnLegend(), GoalListWindow::OnClick(), VehicleGroupWindow::OnClick(), IndustryDirectoryWindow::OnClick(), ScriptLeagueWindow::OnClick(), NewGRFWindow::OnClick(), MessageHistoryWindow::OnClick(), GameSettingsWindow::OnClick(), SignListWindow::OnClick(), CompanyStationsWindow::OnClick(), StationViewWindow::OnClick(), SelectStationWindow< T >::OnClick(), SubsidyListWindow::OnClick(), TownDirectoryWindow::OnClick(), NewGRFWindow::OnDragDrop(), SelectCompanyManagerFaceWindow::OnInit(), SmallMapWindow::OnInit(), NewGRFWindow::OnMouseDrag(), SelectStationWindow< T >::OnMouseOver(), NWidgetBackground::SetupSmallestSize(), NWidgetLeaf::SetupSmallestSize(), SetupWidgetDimensions(), BuildAirportWindow::UpdateWidgetSize(), CheatWindow::UpdateWidgetSize(), GoalListWindow::UpdateWidgetSize(), BaseGraphWindow::UpdateWidgetSize(), PaymentRatesGraphWindow::UpdateWidgetSize(), IndustryProductionGraphWindow::UpdateWidgetSize(), PerformanceLeagueWindow::UpdateWidgetSize(), ScriptLeagueWindow::UpdateWidgetSize(), TooltipsWindow::UpdateWidgetSize(), NetworkClientListWindow::UpdateWidgetSize(), NewGRFWindow::UpdateWidgetSize(), MessageHistoryWindow::UpdateWidgetSize(), BuildSignalWindow::UpdateWidgetSize(), ScriptDebugWindow::UpdateWidgetSize(), GameSettingsWindow::UpdateWidgetSize(), and SubsidyListWindow::UpdateWidgetSize().

◆ frametext

RectPadding WidgetDimensions::frametext

Padding inside frame with text.

Definition at line 43 of file window_gui.h.

Referenced by IndustryCargoesWindow::CalculatePositionInWidget(), TextfileWindow::CheckHyperlinkClick(), StoryBookWindow::DrawActionElement(), NetworkContentListWindow::DrawDetails(), DrawFrame(), NewGRFInspectWindow::DrawString(), ReplaceVehicleWindow::DrawWidget(), BootstrapErrorWindow::DrawWidget(), BootstrapAskForDownloadWindow::DrawWidget(), IndustryCargoesWindow::DrawWidget(), StoryBookWindow::DrawWidget(), StoryBookWindow::GetAvailablePageContentWidth(), StoryBookWindow::GetPageElementFloatWidth(), StoryBookWindow::GetPageElementHeight(), NewGRFInspectWindow::OnClick(), StoryBookWindow::OnClick(), IConsoleWindow::OnInit(), IndustryCargoesWindow::OnInit(), IConsoleWindow::OnPaint(), TextfileWindow::ReflowContent(), NWidgetBackground::SetupSmallestSize(), NWidgetLeaf::SetupSmallestSize(), SetupWidgetDimensions(), BootstrapErrorWindow::UpdateWidgetSize(), BootstrapAskForDownloadWindow::UpdateWidgetSize(), GenerateProgressWindow::UpdateWidgetSize(), PerformanceRatingDetailWindow::UpdateWidgetSize(), IndustryCargoesWindow::UpdateWidgetSize(), LandInfoWindow::UpdateWidgetSize(), BaseNetworkContentDownloadStatusWindow::UpdateWidgetSize(), NetworkJoinStatusWindow::UpdateWidgetSize(), NewGRFInspectWindow::UpdateWidgetSize(), NewGRFParametersWindow::UpdateWidgetSize(), NewGRFWindow::UpdateWidgetSize(), ScanProgressWindow::UpdateWidgetSize(), SignListWindow::UpdateWidgetSize(), StoryBookWindow::UpdateWidgetSize(), and TextfileWindow::UpdateWidgetSize().

◆ fullbevel

◆ hscrollbar

RectPadding WidgetDimensions::hscrollbar

Padding inside horizontal scrollbar buttons.

Definition at line 39 of file window_gui.h.

Referenced by SetupWidgetDimensions().

◆ hsep_indent

◆ hsep_normal

◆ hsep_wide

◆ imgbtn

◆ inset

RectPadding WidgetDimensions::inset

◆ matrix

◆ modalpopup

RectPadding WidgetDimensions::modalpopup

Spacing for popup warning/information windows.

Definition at line 54 of file window_gui.h.

Referenced by SetupWidgetDimensions().

◆ NWidgetLeaf

friend WidgetDimensions::NWidgetLeaf
private

Definition at line 93 of file window_gui.h.

◆ picker

RectPadding WidgetDimensions::picker

Padding for a picker (dock, station, etc) window.

Definition at line 55 of file window_gui.h.

◆ resizebox

RectPadding WidgetDimensions::resizebox

Padding around image in resizebox widget.

Definition at line 49 of file window_gui.h.

Referenced by NWidgetLeaf::SetupSmallestSize(), and SetupWidgetDimensions().

◆ scaled

WidgetDimensions WidgetDimensions::scaled = {}
static

Widget dimensions scaled for current zoom level.

Definition at line 28 of file window_gui.h.

Referenced by NWidgetNewGRFDisplay::AssignSizePosition(), IndustryCargoesWindow::CalculatePositionInWidget(), CheckClickOnViewportSign(), TextfileWindow::CheckHyperlinkClick(), VehicleGroupWindow::ComputeGroupInfoSize(), NWidgetBackground::Draw(), NWidgetScrollbar::Draw(), NWidgetLeaf::Draw(), BaseSettingEntry::Draw(), CargoesField::Draw(), StationViewWindow::DrawAcceptedCargo(), StoryBookWindow::DrawActionElement(), TownAuthorityWindow::DrawActions(), DrawAircraftDetails(), DrawAircraftImage(), TimetableWindow::DrawArrivalDeparturePanel(), DrawArrowButtons(), DrawButtonDropdown(), NetworkClientListWindow::DrawButtons(), DrawCaption(), StationViewWindow::DrawCargoRatings(), DrawCategories(), DrawCategory(), NetworkClientListWindow::DrawCompany(), NetworkContentListWindow::DrawDetails(), DrawDropDownButton(), FramerateWindow::DrawElementTimesColumn(), DrawEngineList(), StationViewWindow::DrawEntries(), DrawFrame(), DrawFrameRect(), VehicleGroupWindow::DrawGroupInfo(), DrawHorizontalScrollbar(), IndustryViewWindow::DrawInfo(), DrawInset(), DrawLayoutLine(), GoalListWindow::DrawListColumn(), NetworkContentListWindow::DrawMatrix(), DrawMatrix(), TownAuthorityWindow::DrawRatings(), DrawResizeBox(), DrawRoadVehDetails(), DrawRoadVehImage(), NetworkGameWindow::DrawServerLine(), SettingEntry::DrawSetting(), SettingsPage::DrawSetting(), DrawShipDetails(), DrawShipImage(), BuildSignalWindow::DrawSignalSprite(), DrawSliderWidget(), NewGRFInspectWindow::DrawString(), TimetableWindow::DrawSummaryPanel(), TimetableWindow::DrawTimetablePanel(), DrawTrainDetails(), DrawTrainImage(), NewGRFInspectWindow::DrawVehicleChainWidget(), DepotWindow::DrawVehicleInDepot(), BaseVehicleListWindow::DrawVehicleListItems(), DrawVehicleRefitWindow(), DrawVerticalScrollbar(), AIConfigWindow::DrawWidget(), BuildAirportWindow::DrawWidget(), ReplaceVehicleWindow::DrawWidget(), BootstrapErrorWindow::DrawWidget(), BootstrapAskForDownloadWindow::DrawWidget(), BuildBridgeWindow::DrawWidget(), CheatWindow::DrawWidget(), CompanyFinancesWindow::DrawWidget(), SelectCompanyLiveryWindow::DrawWidget(), CompanyInfrastructureWindow::DrawWidget(), DepotWindow::DrawWidget(), BuildDocksDepotWindow::DrawWidget(), DropdownWindow::DrawWidget(), EnginePreviewWindow::DrawWidget(), ErrmsgWindow::DrawWidget(), SaveLoadWindow::DrawWidget(), FramerateWindow::DrawWidget(), GSConfigWindow::DrawWidget(), GenerateProgressWindow::DrawWidget(), GraphLegendWindow::DrawWidget(), BaseGraphWindow::DrawWidget(), PaymentRatesGraphWindow::DrawWidget(), IndustryProductionGraphWindow::DrawWidget(), VehicleGroupWindow::DrawWidget(), BuildIndustryWindow::DrawWidget(), IndustryDirectoryWindow::DrawWidget(), IndustryCargoesWindow::DrawWidget(), PerformanceLeagueWindow::DrawWidget(), ScriptLeagueWindow::DrawWidget(), LinkGraphLegendWindow::DrawWidget(), LandInfoWindow::DrawWidget(), TooltipsWindow::DrawWidget(), MusicTrackSelectionWindow::DrawWidget(), MusicWindow::DrawWidget(), BaseNetworkContentDownloadStatusWindow::DrawWidget(), NetworkStartServerWindow::DrawWidget(), NetworkClientListWindow::DrawWidget(), NetworkJoinStatusWindow::DrawWidget(), SpriteAlignerWindow::DrawWidget(), NewGRFParametersWindow::DrawWidget(), NewGRFWindow::DrawWidget(), SavePresetWindow::DrawWidget(), ScanProgressWindow::DrawWidget(), MessageHistoryWindow::DrawWidget(), BuildObjectWindow::DrawWidget(), OrdersWindow::DrawWidget(), PickerWindow::DrawWidget(), BuildRailStationWindow::DrawWidget(), BuildRailDepotWindow::DrawWidget(), BuildRoadDepotWindow::DrawWidget(), BuildRoadStationWindow::DrawWidget(), ScriptListWindow::DrawWidget(), ScriptSettingsWindow::DrawWidget(), GameSettingsWindow::DrawWidget(), SignListWindow::DrawWidget(), SmallMapWindow::DrawWidget(), CompanyStationsWindow::DrawWidget(), SelectStationWindow< T >::DrawWidget(), StatusBarWindow::DrawWidget(), StoryBookWindow::DrawWidget(), SubsidyListWindow::DrawWidget(), TextfileWindow::DrawWidget(), TownAuthorityWindow::DrawWidget(), TownViewWindow::DrawWidget(), TownDirectoryWindow::DrawWidget(), TransparenciesWindow::DrawWidget(), RefitWindow::DrawWidget(), VehicleDetailsWindow::DrawWidget(), VehicleViewWindow::DrawWidget(), ScriptDebugWindow::DrawWidgetLog(), Window::DrawWidgets(), DrawYearCategory(), DrawYearColumn(), DropdownWindow::FitAvailableHeight(), GetAutoPlacePosition(), StoryBookWindow::GetAvailablePageContentWidth(), QueryString::GetBoundingRect(), NetworkClientListWindow::GetButtonAtPoint(), QueryString::GetCaretPosition(), QueryString::GetCharAtPosition(), TownViewWindow::GetDesiredInfoHeight(), DropdownWindow::GetDropDownItem(), GetDropDownListDimension(), GetEngineListHeight(), SmallMapWindow::GetLegendHeight(), GetMaxCategoriesWidth(), SmallMapWindow::GetMinLegendWidth(), OrdersWindow::GetOrderFromPt(), StoryBookWindow::GetPageElementFloatWidth(), StoryBookWindow::GetPageElementHeight(), SmallMapWindow::GetPositionOnLegend(), VehicleDetailsWindow::GetRoadVehDetailsHeight(), GetTotalCategoriesHeight(), GetVehicleListHeight(), LocalGetWindowPlacement(), ViewportSign::MarkDirty(), ReplaceVehicleWindow::OnClick(), BuildVehicleWindow::OnClick(), CheatWindow::OnClick(), SaveLoadWindow::OnClick(), FramerateWindow::OnClick(), GSConfigWindow::OnClick(), GoalListWindow::OnClick(), BaseGraphWindow::OnClick(), VehicleGroupWindow::OnClick(), IndustryViewWindow::OnClick(), IndustryDirectoryWindow::OnClick(), ScriptLeagueWindow::OnClick(), NewGRFInspectWindow::OnClick(), NewGRFParametersWindow::OnClick(), NewGRFWindow::OnClick(), MessageHistoryWindow::OnClick(), ScriptSettingsWindow::OnClick(), GameSettingsWindow::OnClick(), SignListWindow::OnClick(), CompanyStationsWindow::OnClick(), StationViewWindow::OnClick(), SelectStationWindow< T >::OnClick(), StoryBookWindow::OnClick(), SubsidyListWindow::OnClick(), TownDirectoryWindow::OnClick(), NewGRFWindow::OnDragDrop(), SelectCompanyManagerFaceWindow::OnInit(), IConsoleWindow::OnInit(), IndustryViewWindow::OnInit(), IndustryCargoesWindow::OnInit(), SmallMapWindow::OnInit(), ScriptDebugWindow::OnInvalidateData(), NewGRFWindow::OnMouseDrag(), DropdownWindow::OnMouseLoop(), SaveLoadWindow::OnMouseOver(), SelectStationWindow< T >::OnMouseOver(), BuildAirportWindow::OnPaint(), ReplaceVehicleWindow::OnPaint(), BuildVehicleWindow::OnPaint(), IConsoleWindow::OnPaint(), BuildDocksStationWindow::OnPaint(), BuildRailStationWindow::OnPaint(), BuildRoadStationWindow::OnPaint(), GameSettingsWindow::OnPaint(), StationViewWindow::OnPaint(), FramerateWindow::OnResize(), GoalListWindow::OnResize(), IndustryDirectoryWindow::OnResize(), IndustryCargoesWindow::OnResize(), NewGRFInspectWindow::OnResize(), NewGRFWindow::OnResize(), SavePresetWindow::OnResize(), MessageHistoryWindow::OnResize(), OrdersWindow::OnResize(), ScriptDebugWindow::OnResize(), GameSettingsWindow::OnResize(), SignListWindow::OnResize(), CompanyStationsWindow::OnResize(), StationViewWindow::OnResize(), SelectStationWindow< T >::OnResize(), StoryBookWindow::OnResize(), SubsidyListWindow::OnResize(), TextfileWindow::OnResize(), TimetableWindow::OnResize(), TownDirectoryWindow::OnResize(), NetworkClientListWindow::OnTooltip(), TextfileWindow::ReflowContent(), NWidgetNewGRFDisplay::SetupSmallestSize(), NWidgetBackground::SetupSmallestSize(), NWidgetLeaf::SetupSmallestSize(), SetupWidgetDimensions(), ViewportSign::UpdatePosition(), DropdownWindow::UpdateSizeAndPosition(), BuildAirportWindow::UpdateWidgetSize(), BootstrapErrorWindow::UpdateWidgetSize(), BootstrapAskForDownloadWindow::UpdateWidgetSize(), BuildBridgeWindow::UpdateWidgetSize(), CheatWindow::UpdateWidgetSize(), SelectCompanyLiveryWindow::UpdateWidgetSize(), CompanyInfrastructureWindow::UpdateWidgetSize(), DepotWindow::UpdateWidgetSize(), BuildDocksDepotWindow::UpdateWidgetSize(), EnginePreviewWindow::UpdateWidgetSize(), ErrmsgWindow::UpdateWidgetSize(), FramerateWindow::UpdateWidgetSize(), GenerateLandscapeWindow::UpdateWidgetSize(), CreateScenarioWindow::UpdateWidgetSize(), GenerateProgressWindow::UpdateWidgetSize(), GoalListWindow::UpdateWidgetSize(), BaseGraphWindow::UpdateWidgetSize(), PaymentRatesGraphWindow::UpdateWidgetSize(), PerformanceRatingDetailWindow::UpdateWidgetSize(), IndustryProductionGraphWindow::UpdateWidgetSize(), BuildIndustryWindow::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(), BuildSignalWindow::UpdateWidgetSize(), BuildRailDepotWindow::UpdateWidgetSize(), BuildRoadDepotWindow::UpdateWidgetSize(), BuildRoadStationWindow::UpdateWidgetSize(), ScriptDebugWindow::UpdateWidgetSize(), GameSettingsWindow::UpdateWidgetSize(), SignListWindow::UpdateWidgetSize(), StoryBookWindow::UpdateWidgetSize(), SubsidyListWindow::UpdateWidgetSize(), TextfileWindow::UpdateWidgetSize(), TimetableWindow::UpdateWidgetSize(), TownAuthorityWindow::UpdateWidgetSize(), VehicleDetailsWindow::UpdateWidgetSize(), and ViewportAddString().

◆ shadebox

RectPadding WidgetDimensions::shadebox

Padding around image in shadebox widget.

Definition at line 45 of file window_gui.h.

Referenced by NWidgetLeaf::SetupSmallestSize(), and SetupWidgetDimensions().

◆ sparse

RectPadding WidgetDimensions::sparse

Padding used for 'sparse' widget window, usually containing multiple frames.

Definition at line 56 of file window_gui.h.

◆ sparse_resize

RectPadding WidgetDimensions::sparse_resize

Padding used for a resizeable 'sparse' widget window, usually containing multiple frames.

Definition at line 57 of file window_gui.h.

◆ stickybox

RectPadding WidgetDimensions::stickybox

Padding around image in stickybox widget.

Definition at line 46 of file window_gui.h.

Referenced by NWidgetLeaf::SetupSmallestSize(), and SetupWidgetDimensions().

◆ unscaled

constexpr WidgetDimensions WidgetDimensions::unscaled
inlinestaticconstexpr

◆ vscrollbar

RectPadding WidgetDimensions::vscrollbar

Padding inside vertical scrollbar buttons.

Definition at line 38 of file window_gui.h.

Referenced by NWidgetLeaf::SetupSmallestSize(), and SetupWidgetDimensions().

◆ vsep_normal

◆ vsep_picker

int WidgetDimensions::vsep_picker

Vertical spacing of picker-window widgets.

Definition at line 59 of file window_gui.h.

◆ vsep_sparse

int WidgetDimensions::vsep_sparse

Normal vertical spacing for 'sparse' widget window.

Definition at line 61 of file window_gui.h.

◆ vsep_wide

◆ WD_CAPTION_HEIGHT

constexpr uint WidgetDimensions::WD_CAPTION_HEIGHT = 14
staticconstexprprivate

Minimum height of a title bar.

Definition at line 90 of file window_gui.h.

Referenced by NWidgetLeaf::NWidgetLeaf().

◆ WD_CLOSEBOX_WIDTH

constexpr uint WidgetDimensions::WD_CLOSEBOX_WIDTH = 11
staticconstexprprivate

Minimum width of a close box widget.

Definition at line 89 of file window_gui.h.

Referenced by NWidgetLeaf::NWidgetLeaf().

◆ WD_DEBUGBOX_WIDTH

constexpr uint WidgetDimensions::WD_DEBUGBOX_WIDTH = 12
staticconstexprprivate

Minimum width of a standard debug box widget.

Definition at line 86 of file window_gui.h.

Referenced by NWidgetLeaf::NWidgetLeaf().

◆ WD_DEFSIZEBOX_WIDTH

constexpr uint WidgetDimensions::WD_DEFSIZEBOX_WIDTH = 12
staticconstexprprivate

Minimum width of a standard defsize box widget.

Definition at line 87 of file window_gui.h.

Referenced by NWidgetLeaf::NWidgetLeaf().

◆ WD_DROPDOWN_HEIGHT

constexpr uint WidgetDimensions::WD_DROPDOWN_HEIGHT = 12
staticconstexprprivate

Minimum height of a drop down widget.

Definition at line 91 of file window_gui.h.

Referenced by NWidgetLeaf::NWidgetLeaf().

◆ WD_RESIZEBOX_WIDTH

constexpr uint WidgetDimensions::WD_RESIZEBOX_WIDTH = 12
staticconstexprprivate

Minimum width of a resize box widget.

Definition at line 88 of file window_gui.h.

Referenced by NWidgetLeaf::NWidgetLeaf().

◆ WD_SHADEBOX_WIDTH

constexpr uint WidgetDimensions::WD_SHADEBOX_WIDTH = 12
staticconstexprprivate

Distances used in drawing widgets.

These constants should not be used elsewhere, use scaled/unscaled WidgetDimensions instead. Minimum width of a standard shade box widget.

Definition at line 84 of file window_gui.h.

Referenced by NWidgetLeaf::NWidgetLeaf().

◆ WD_STICKYBOX_WIDTH

constexpr uint WidgetDimensions::WD_STICKYBOX_WIDTH = 12
staticconstexprprivate

Minimum width of a standard sticky box widget.

Definition at line 85 of file window_gui.h.

Referenced by NWidgetLeaf::NWidgetLeaf().


The documentation for this class was generated from the following files: