OpenTTD Source: NWidgetPart Struct Reference

OpenTTD Source 14.1

Data Structures | Public Member Functions | Data Fields
NWidgetPart Struct Reference
Hierarchical widget parts

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, NWidContainerFlags cont_flags)

## Data Fields
WidgetType | type
| Type of the part. More...
union NWidgetPart::NWidgetPartUnion | u

## Detailed Description

Partial widget specification to allow NWidgets to be written nested.

Definition at line 1040 of file widget_type.h.

## Field Documentation

## ◆ type

WidgetType NWidgetPart::type

Type of the part.

See also
  NWidgetPartType.

Definition at line 1041 of file widget_type.h.

Referenced by IsNWidgetTreeClosed(), MakeNWidget(), and MakeWidgetTree().

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

- src/widget_type.h