OpenTTD
Data Structures | Enumerations
sortlist_type.h File Reference

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

#include "core/enum_type.hpp"
#include "core/bitmath_func.hpp"
#include "core/sort_func.hpp"
#include "core/smallvec_type.hpp"
#include "date_type.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, 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_FIRST_SORT = 1 << 3, VL_FILTER = 1 << 4, VL_END = 1 << 5
}
 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_FIRST_SORT 

sort with quick sort first

VL_FILTER 

filter disabled/enabled

Definition at line 22 of file sortlist_type.h.