#include </home/zeitlin/src/wx/github/interface/wx/treelist.h>
Class defining sort order for the items in wxTreeListCtrl.
Public Member Functions | |
wxTreeListItemComparator () | |
Default constructor. | |
virtual int | Compare (wxTreeListCtrl *treelist, unsigned column, wxTreeListItem first, wxTreeListItem second)=0 |
Pure virtual function which must be overridden to define sort order. | |
virtual | ~wxTreeListItemComparator () |
Trivial but virtual destructor. |
wxTreeListItemComparator::wxTreeListItemComparator | ( | ) |
Default constructor.
Notice that this class is not copyable, comparators are not passed by value.
virtual wxTreeListItemComparator::~wxTreeListItemComparator | ( | ) | [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.
virtual int wxTreeListItemComparator::Compare | ( | wxTreeListCtrl * | treelist, |
unsigned | column, | ||
wxTreeListItem | first, | ||
wxTreeListItem | second | ||
) | [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. |