add visible() to listbox::column_interface

This commit is contained in:
Jinhao
2016-06-14 19:29:48 +08:00
parent cfcb776350
commit 4d279b8378
2 changed files with 67 additions and 17 deletions

View File

@@ -70,6 +70,18 @@ namespace nana
* The priority of max: maximize, ranged width, scheme's max_fit_content.
*/
virtual void fit_content(unsigned maximize = 0) noexcept = 0;
/// Determines the visibility state of the column
/**
* @return true if the column is visible, false otherwise
*/
virtual bool visible() const noexcept = 0;
/// Sets the visibility state of the column
/**
* @param is_visible Indicates whether to show or hide the column
*/
virtual void visible(bool is_visible) noexcept = 0;
};
using size_type = std::size_t;