OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4GUI::SortCompareElements Class Reference

Public Member Functions

 SortCompareElements (ListBox::SortFunction SortFunc, void *par)
 
int operator() (const Element *pEl1, const Element *pEl2)
 

Detailed Description

Definition at line 624 of file C4GuiListBox.cpp.

Constructor & Destructor Documentation

C4GUI::SortCompareElements::SortCompareElements ( ListBox::SortFunction  SortFunc,
void *  par 
)
inline

Definition at line 630 of file C4GuiListBox.cpp.

630 : par(par), SortFunc(SortFunc) {}

Member Function Documentation

int C4GUI::SortCompareElements::operator() ( const Element pEl1,
const Element pEl2 
)
inline

Definition at line 632 of file C4GuiListBox.cpp.

633  { return (*SortFunc)(pEl1, pEl2, par)>0; }

The documentation for this class was generated from the following file: