OpenTTD Source: ObjectPickerSelection Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
ObjectPickerSelection Struct Reference

## Data Fields
ObjectClassID | sel_class
| Selected object class.
uint16_t | sel_type
| Selected object type within the class.
uint8_t | sel_view
| Selected view of the object.

## Detailed Description

Definition at line 38 of file object_gui.cpp.

## Field Documentation

## ◆ sel_class

ObjectClassID ObjectPickerSelection::sel_class

Selected object class.

Definition at line 39 of file object_gui.cpp.

Referenced by BuildObjectWindow::DrawWidget(), ObjectPickerCallbacks::GetSelectedClass(), BuildObjectWindow::GetWidgetString(), InitializeObjectGui(), BuildObjectWindow::OnInvalidateData(), BuildObjectWindow::OnPlaceMouseUp(), BuildObjectWindow::OnPlaceObject(), ObjectPickerCallbacks::SetSelectedClass(), and BuildObjectWindow::UpdateWidgetSize().

## ◆ sel_type

uint16_t ObjectPickerSelection::sel_type

Selected object type within the class.

Definition at line 40 of file object_gui.cpp.

Referenced by BuildObjectWindow::DrawWidget(), ObjectPickerCallbacks::GetSelectedType(), BuildObjectWindow::GetWidgetString(), BuildObjectWindow::OnClick(), BuildObjectWindow::OnInvalidateData(), BuildObjectWindow::OnPlaceMouseUp(), BuildObjectWindow::OnPlaceObject(), ObjectPickerCallbacks::SetSelectedType(), and BuildObjectWindow::UpdateWidgetSize().

## ◆ sel_view

uint8_t ObjectPickerSelection::sel_view

Selected view of the object.

Definition at line 41 of file object_gui.cpp.

Referenced by ObjectPickerCallbacks::DrawType(), BuildObjectWindow::DrawWidget(), BuildObjectWindow::GetWidgetString(), BuildObjectWindow::OnClick(), BuildObjectWindow::OnInvalidateData(), BuildObjectWindow::OnPlaceMouseUp(), BuildObjectWindow::OnPlaceObject(), and BuildObjectWindow::UpdateButtons().

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

- src/object_gui.cpp