add methods to get/set sortability of listbox

This commit is contained in:
beru
2015-04-27 06:18:28 +09:00
parent 458c6b1d3c
commit 77c039be42
2 changed files with 26 additions and 2 deletions

View File

@@ -552,7 +552,10 @@ By \a clicking on a header the list get \a reordered, first up, and then down al
_m_ease_key(&key);
}
///Sets a strict weak ordering comparer for a column
bool sortable() const;
void sortable(bool enable);
///Sets a strict weak ordering comparer for a column
void set_sort_compare(size_type col, std::function<bool(const nana::string&, nana::any*,
const nana::string&, nana::any*, bool reverse)> strick_ordering);