more toolbar improvement.
This commit is contained in:
parent
c20eb357af
commit
bfc775c5e0
@ -83,8 +83,8 @@ namespace nana
|
|||||||
using size_type = std::size_t; ///< A type to count the number of elements.
|
using size_type = std::size_t; ///< A type to count the number of elements.
|
||||||
|
|
||||||
toolbar() = default;
|
toolbar() = default;
|
||||||
toolbar(window, bool visible);
|
toolbar(window, bool visible, bool detached=false);
|
||||||
toolbar(window, const rectangle& = rectangle(), bool visible = true);
|
toolbar(window, const rectangle& = rectangle(), bool visible = true, bool detached = false);
|
||||||
|
|
||||||
void separate(); ///< Adds a separator.
|
void separate(); ///< Adds a separator.
|
||||||
void append(const ::std::string& text, const nana::paint::image& img); ///< Adds a control button.
|
void append(const ::std::string& text, const nana::paint::image& img); ///< Adds a control button.
|
||||||
|
@ -418,12 +418,14 @@ namespace nana
|
|||||||
}//end namespace drawerbase
|
}//end namespace drawerbase
|
||||||
|
|
||||||
//class toolbar
|
//class toolbar
|
||||||
toolbar::toolbar(window wd, bool visible)
|
toolbar::toolbar(window wd, bool visible, bool detached) :
|
||||||
|
detached_(detached)
|
||||||
{
|
{
|
||||||
create(wd, rectangle(), visible);
|
create(wd, rectangle(), visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
toolbar::toolbar(window wd, const rectangle& r, bool visible)
|
toolbar::toolbar(window wd, const rectangle& r, bool visible, bool detached) :
|
||||||
|
detached_(detached)
|
||||||
{
|
{
|
||||||
create(wd, r, visible);
|
create(wd, r, visible);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user