new method is_single_enabled for listbox

This commit is contained in:
Jinhao
2019-01-21 23:51:45 +08:00
parent 8ecae7402c
commit e057724f98
2 changed files with 14 additions and 1 deletions

View File

@@ -1850,6 +1850,11 @@ namespace nana
(for_selection ? single_selection_ : single_check_) = false;
}
bool is_single_enabled(bool for_selection) const noexcept
{
return (for_selection ? single_selection_ : single_check_);
}
size_type size_item(size_type cat) const
{
return get(cat)->items.size();
@@ -5959,9 +5964,16 @@ namespace nana
void listbox::disable_single(bool for_selection)
{
internal_scope_guard lock;
_m_ess().lister.disable_single(for_selection);
}
bool listbox::is_single_enabled(bool for_selection) const noexcept
{
internal_scope_guard lock;
return _m_ess().lister.is_single_enabled(for_selection);
}
listbox::export_options& listbox::def_export_options()
{
return _m_ess().def_exp_options;