listbox::reorder_columns implemented by move_column

This commit is contained in:
qPCR4vir
2018-11-13 19:05:19 +01:00
parent e4b60148e7
commit c0de9ee460
2 changed files with 48 additions and 7 deletions

View File

@@ -1464,7 +1464,16 @@ the nana::detail::basic_window member pointer scheme
/// Move column to view_position
void move_column(size_type abs_pos, size_type view_pos);
void column_resizable(bool resizable);
/// Sort columns in range first_col to last_col inclusive using the values from a row
void reorder_columns(size_type first_col,
size_type last_col,
index_pair row, bool reverse,
std::function<bool(const std::string &cell1, size_type col1,
const std::string &cell2, size_type col2,
const nana::any *rowval,
bool reverse)> comp);
void column_resizable(bool resizable);
bool column_resizable() const;
void column_movable(bool);
bool column_movable() const;