src/engine_gui.h
branchNewGRF_ports
changeset 10991 d8811e327d12
equal deleted inserted replaced
10731:67db0d431d5e 10991:d8811e327d12
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file engine_gui.h Engine GUI functions, used by build_vehicle_gui and autoreplace_gui */
       
     4 
       
     5 #ifndef ENGINE_GUI_H
       
     6 #define ENGINE_GUI_H
       
     7 
       
     8 #include "sortlist_type.h"
       
     9 
       
    10 typedef GUIList<EngineID> GUIEngineList;
       
    11 
       
    12 typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort()
       
    13 void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare);  ///< qsort of the engine list
       
    14 void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list
       
    15 
       
    16 #endif /* ENGINE_GUI_H */