2008-05-27 12:24:23 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
/** @file engine_gui.h Engine GUI functions, used by build_vehicle_gui and autoreplace_gui */
|
|
|
|
|
|
|
|
#ifndef ENGINE_GUI_H
|
|
|
|
#define ENGINE_GUI_H
|
|
|
|
|
2008-05-28 17:29:27 +00:00
|
|
|
#include "sortlist_type.h"
|
2008-05-27 12:24:23 +00:00
|
|
|
|
2008-05-28 17:29:27 +00:00
|
|
|
typedef GUIList<EngineID> GUIEngineList;
|
2008-05-27 12:24:23 +00:00
|
|
|
|
|
|
|
typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort()
|
2008-05-28 17:29:27 +00:00
|
|
|
void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare); ///< qsort of the engine list
|
|
|
|
void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list
|
2008-05-27 12:24:23 +00:00
|
|
|
|
|
|
|
#endif /* ENGINE_GUI_H */
|