add scheme and caption alignment to group widget.
This commit is contained in:
@@ -22,8 +22,20 @@
|
||||
#include <nana/gui/widgets/checkbox.hpp>
|
||||
|
||||
namespace nana{
|
||||
|
||||
namespace drawerbase
|
||||
{
|
||||
namespace group
|
||||
{
|
||||
struct scheme : public nana::widget_geometrics
|
||||
{
|
||||
color_proxy border{ colors::gray_border };
|
||||
};
|
||||
}// end namespace panel
|
||||
}//end namespace drawerbase
|
||||
|
||||
class group
|
||||
: public panel<true>
|
||||
: public widget_object<category::widget_tag, drawerbase::panel::drawer, general_events, drawerbase::group::scheme>
|
||||
{
|
||||
struct implement;
|
||||
public:
|
||||
@@ -53,6 +65,9 @@ namespace nana{
|
||||
/// Adds an option for user selection
|
||||
checkbox& add_option(::std::string);
|
||||
|
||||
/// Modifies the alignment of the title
|
||||
void caption_align(align position);
|
||||
|
||||
/// Enables/disables the radio mode which is single selection
|
||||
group& radio_mode(bool);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user