OpenTTD Source: PickerFilterData Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
PickerFilterData Struct Reference
Inheritance diagram for PickerFilterData:

## Data Fields
const PickerCallbacks * | callbacks
| Callbacks for filter functions to access to callbacks.
std::optional< BadgeTextFilter > | btf
std::optional< BadgeDropdownFilter > | bdf

## Additional Inherited Members
Public Member Functions inherited from StringFilter
| StringFilter (const bool *case_sensitive=nullptr, bool locale_aware=true)
| Constructor for filter.
void | SetFilterTerm (std::string_view str)
| Set the term to filter on.
bool | IsEmpty () const
| Check whether any filter words were entered.
void | ResetState ()
| Reset the matching state to process a new item.
void | AddLine (const char *)=delete
void | AddLine (std::string_view str)
| Pass another text line from the current item to the filter.
bool | GetState () const
| Get the matching state of the current item.

## Detailed Description

Definition at line 148 of file picker_gui.h.

## Field Documentation

## ◆ bdf

std::optional<BadgeDropdownFilter> PickerFilterData::bdf

Definition at line 151 of file picker_gui.h.

## ◆ btf

std::optional<BadgeTextFilter> PickerFilterData::btf

Definition at line 150 of file picker_gui.h.

## ◆ callbacks

const PickerCallbacks* PickerFilterData::callbacks

Callbacks for filter functions to access to callbacks.

Definition at line 149 of file picker_gui.h.

Referenced by ClassTagNameFilter(), and TypeTagNameFilter().

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

- src/picker_gui.h