OpenTTD Source  20240919-master-gdf0233f4c2
sortlist_type.h File Reference

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...
 

Enumerations

enum  SortListFlags {
  VL_NONE = 0, VL_DESC = 1 << 0, VL_RESORT = 1 << 1, VL_REBUILD = 1 << 2,
  VL_FILTER = 1 << 3, VL_END = 1 << 4
}
 Flags of the sort list. More...
 

Detailed Description

Base types for having sorted lists in GUIs.

Definition in file sortlist_type.h.

Enumeration Type Documentation

◆ SortListFlags

Flags of the sort list.

Enumerator
VL_NONE 

no sort

VL_DESC 

sort descending or ascending

VL_RESORT 

instruct the code to resort the list in the next loop

VL_REBUILD 

rebuild the sort list

VL_FILTER 

filter disabled/enabled

Definition at line 19 of file sortlist_type.h.