Merge branch 'hotfix-1.5.6' of https://github.com/besh81/nana into besh81-hotfix-1.5.6
This commit is contained in:
@@ -307,6 +307,11 @@ namespace nana
|
||||
return cont_.back().index;
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
cont_.clear();
|
||||
}
|
||||
|
||||
unsigned pixels() const noexcept ///< the visible width of the whole header
|
||||
{
|
||||
unsigned pixels = 0;
|
||||
@@ -5319,6 +5324,15 @@ namespace nana
|
||||
return pos;
|
||||
}
|
||||
|
||||
void listbox::clear_headers()
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
auto & ess = _m_ess();
|
||||
ess.lister.erase();
|
||||
ess.header.clear();
|
||||
ess.update();
|
||||
}
|
||||
|
||||
listbox::cat_proxy listbox::append(std::string s)
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
|
||||
@@ -625,6 +625,13 @@ namespace nana
|
||||
{
|
||||
return get_drawer_trigger().ess().items.size();
|
||||
}
|
||||
|
||||
void menubar::clear()
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
get_drawer_trigger().ess().items.clear();
|
||||
API::refresh_window(handle());
|
||||
}
|
||||
|
||||
bool menubar::cancel()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user