OpenTTD Source: NWidgetPartWidget Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
NWidgetPartWidget Struct Reference
Hierarchical widget parts

Widget part for storing basic widget information. More...

`#include <widget_type.h>`

## Data Fields
Colours | colour
| Widget colour.
WidgetID | index
| Index of the widget.

## Detailed Description

Widget part for storing basic widget information.

Definition at line 1027 of file widget_type.h.

## Field Documentation

## ◆ colour

Colours NWidgetPartWidget::colour

Widget colour.

Definition at line 1028 of file widget_type.h.

Referenced by MakeNWidget().

## ◆ index

WidgetID NWidgetPartWidget::index

Index of the widget.

Definition at line 1029 of file widget_type.h.

Referenced by ApplyNWidgetPartAttribute(), and MakeNWidget().

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

- src/widget_type.h