#include <wx/treelist.h>
Class defining sort order for the items in wxTreeListCtrl.
Public Member Functions | |
wxTreeListItemComparator () | |
Default constructor. More... | |
virtual int | Compare (wxTreeListCtrl *treelist, unsigned column, wxTreeListItem first, wxTreeListItem second)=0 |
Pure virtual function which must be overridden to define sort order. More... | |
virtual | ~wxTreeListItemComparator () |
Trivial but virtual destructor. More... | |
wxTreeListItemComparator::wxTreeListItemComparator | ( | ) |
Default constructor.
Notice that this class is not copiable, comparators are not passed by value.
|
virtual |
Trivial but virtual destructor.
Although this class is not used polymorphically by wxWidgets itself, provide virtual dtor in case it's used like this in the user code.
|
pure virtual |
Pure virtual function which must be overridden to define sort order.
The comparison function should return negative, null or positive value depending on whether the first item is less than, equal to or greater than the second one. The items should be compared using their values for the given column.
treelist | The control whose contents is being sorted. |
column | The column of this control used for sorting. |
first | First item to compare. |
second | Second item to compare. |