Public Member Functions | Data Fields

# WindowDesc Struct Reference

High level window description. More...

`#include <window_gui.h>`

Inheritance diagram for WindowDesc:

## Public Member Functions
| WindowDesc (WindowPosition default_pos, int16 def_width, int16 def_height, WindowClass window_class, WindowClass parent_class, uint32 flags, const NWidgetPart *nwid_parts, int16 nwid_length)
| Window description constructor.
## Data Fields
WindowPosition | default_pos
| Preferred position of the window.
int16 | default_width
| Preferred initial width of the window.
int16 | default_height
| Preferred initial height of the window.
WindowClass | cls
| Class of the window,.
WindowClass | parent_cls
| Class of the parent window.
uint32 | flags
| Flags.
const NWidgetPart * | nwid_parts
| Nested widget parts describing the window.
int16 | nwid_length
| Length of the nwid_parts array.

## Detailed Description

High level window description.

Definition at line 166 of file window_gui.h.

## Constructor & Destructor Documentation

WindowDesc::WindowDesc | ( | WindowPosition | def_pos,
|  | int16 | def_width,
|  | int16 | def_height,
|  | WindowClass | window_class,
|  | WindowClass | parent_class,
|  | uint32 | flags,
|  | const NWidgetPart * | nwid_parts,
|  | int16 | nwid_length |
| ) |  |  |

Window description constructor.

Definition at line 76 of file window.cpp.

## Field Documentation

WindowClass WindowDesc::cls

Class of the window,.

See also:
  WindowClass.

Definition at line 177 of file window_gui.h.

Referenced by AllocateWindowDescFront(), Window::InitializeData(), and ShowCompanyGroup().

WindowPosition WindowDesc::default_pos

Preferred position of the window.

See also:
  WindowPosition()

Definition at line 174 of file window_gui.h.

Referenced by Window::InitializeData(), and LocalGetWindowPlacement().

uint32 WindowDesc::flags

Flags.

See also:
  WindowDefaultFlag

Definition at line 179 of file window_gui.h.

Referenced by Window::InitializeData().

WindowClass WindowDesc::parent_cls

Class of the parent window.

See also:
  WindowClass

Definition at line 178 of file window_gui.h.

Referenced by LocalGetWindowPlacement().

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

- src/window_gui.h
- src/window.cpp