OpenTTD Source 20260206-master-g4d4e37dbf1
NWidgetPart Struct Reference

Partial widget specification to allow NWidgets to be written nested. More...

#include <widget_type.h>

Data Structures

union  NWidgetPartUnion

Public Member Functions

constexpr NWidgetPart (WidgetType type)
constexpr NWidgetPart (WidgetType type, Point xy)
constexpr NWidgetPart (WidgetType type, NWidgetPartDataTip data_tip)
constexpr NWidgetPart (WidgetType type, NWidgetPartWidget widget)
constexpr NWidgetPart (WidgetType type, NWidgetPartPaddings padding)
constexpr NWidgetPart (WidgetType type, NWidgetPartPIP pip)
constexpr NWidgetPart (WidgetType type, NWidgetPartTextLines text_lines)
constexpr NWidgetPart (WidgetType type, NWidgetPartTextStyle text_style)
constexpr NWidgetPart (WidgetType type, NWidgetPartAlignment align)
constexpr NWidgetPart (WidgetType type, NWidgetFunctionType *func_ptr)
constexpr NWidgetPart (WidgetType type, NWidgetPartContainer container)
constexpr NWidgetPart (WidgetType type, NWidgetPartAspect aspect)

Data Fields

WidgetType type
 Type of the part.
union NWidgetPart::NWidgetPartUnion u

Detailed Description

Partial widget specification to allow NWidgets to be written nested.

Definition at line 1107 of file widget_type.h.

Constructor & Destructor Documentation

◆ NWidgetPart() [1/12]

NWidgetPart::NWidgetPart ( WidgetType type)
inlineexplicitconstexpr

Definition at line 1138 of file widget_type.h.

◆ NWidgetPart() [2/12]

NWidgetPart::NWidgetPart ( WidgetType type,
Point xy )
inlineconstexpr

Definition at line 1139 of file widget_type.h.

◆ NWidgetPart() [3/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartDataTip data_tip )
inlineconstexpr

Definition at line 1140 of file widget_type.h.

◆ NWidgetPart() [4/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartWidget widget )
inlineconstexpr

Definition at line 1141 of file widget_type.h.

◆ NWidgetPart() [5/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartPaddings padding )
inlineconstexpr

Definition at line 1142 of file widget_type.h.

◆ NWidgetPart() [6/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartPIP pip )
inlineconstexpr

Definition at line 1143 of file widget_type.h.

◆ NWidgetPart() [7/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartTextLines text_lines )
inlineconstexpr

Definition at line 1144 of file widget_type.h.

◆ NWidgetPart() [8/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartTextStyle text_style )
inlineconstexpr

Definition at line 1145 of file widget_type.h.

◆ NWidgetPart() [9/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartAlignment align )
inlineconstexpr

Definition at line 1146 of file widget_type.h.

◆ NWidgetPart() [10/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetFunctionType * func_ptr )
inlineconstexpr

Definition at line 1147 of file widget_type.h.

◆ NWidgetPart() [11/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartContainer container )
inlineconstexpr

Definition at line 1148 of file widget_type.h.

◆ NWidgetPart() [12/12]

NWidgetPart::NWidgetPart ( WidgetType type,
NWidgetPartAspect aspect )
inlineconstexpr

Definition at line 1149 of file widget_type.h.

Field Documentation

◆ type

WidgetType NWidgetPart::type

Type of the part.

See also
NWidgetPartType.

Definition at line 1108 of file widget_type.h.

Referenced by ApplyNWidgetPartAttribute(), and MakeNWidget().


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