OpenTTD Source: src/sortlist_type.h File Reference

OpenTTD Source 15.3

Data Structures | Typedefs | Enumerations
sortlist_type.h File Reference

Base types for having sorted lists in GUIs. More...

`#include "core/enum_type.hpp"`
`#include "timer/timer_game_tick.h"`

Go to the source code of this file.

## Data Structures
struct | Listing
| Data structure describing how to show the list (what sort direction and criteria). More...
struct | Filtering
| Data structure describing what to show in the list (filter criteria). More...
class | GUIList< T, P, F >
| List template of 'things' `T` to sort in a GUI. More...

## Typedefs
using | SortListFlags = EnumBitSet< SortListFlag, uint8_t >

## Enumerations
enum class | SortListFlag : uint8_t { Desc , Resort , Rebuild , Filter }
| Flags of the sort list. More...

## Detailed Description

Base types for having sorted lists in GUIs.

Definition in file sortlist_type.h.

## Typedef Documentation

## ◆ SortListFlags

using SortListFlags = EnumBitSet<SortListFlag, uint8_t>

Definition at line 23 of file sortlist_type.h.

## Enumeration Type Documentation

## ◆ SortListFlag

enum class SortListFlag : uint8_t
| strong

Flags of the sort list.

Enumerator
Desc | sort descending or ascending
Resort | instruct the code to resort the list in the next loop
Rebuild | rebuild the sort list
Filter | filter disabled/enabled

Definition at line 17 of file sortlist_type.h.