add scheme for checkbox square box
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Widget Geometrics
|
||||
* Nana C++ Library(http://www.nanapro.org)
|
||||
* Copyright(C) 2003-2016 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2018 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@@ -22,12 +22,17 @@ namespace nana
|
||||
public:
|
||||
color_proxy(const color_proxy&);
|
||||
color_proxy(color_rgb);
|
||||
color_proxy(color_argb);
|
||||
color_proxy(color_rgba);
|
||||
color_proxy(colors);
|
||||
color_proxy& operator=(const color_proxy&);
|
||||
color_proxy& operator=(const ::nana::color&);
|
||||
color_proxy& operator=(color_rgb);
|
||||
color_proxy& operator=(color_argb);
|
||||
color_proxy& operator=(color_rgba);
|
||||
color_proxy& operator=(colors);
|
||||
color get_color() const;
|
||||
color get(const color& default_color) const;
|
||||
operator color() const;
|
||||
private:
|
||||
std::shared_ptr<color> color_;
|
||||
|
||||
@@ -37,6 +37,13 @@ namespace drawerbase
|
||||
{
|
||||
namespace checkbox
|
||||
{
|
||||
struct scheme
|
||||
: public widget_geometrics
|
||||
{
|
||||
color_proxy square_bgcolor{ static_cast<color_argb>(0x0) };
|
||||
color_proxy square_border_color{ colors::black };
|
||||
};
|
||||
|
||||
struct events_type
|
||||
: public general_events
|
||||
{
|
||||
@@ -67,7 +74,7 @@ namespace drawerbase
|
||||
|
||||
|
||||
class checkbox
|
||||
: public widget_object<category::widget_tag, drawerbase::checkbox::drawer, drawerbase::checkbox::events_type>
|
||||
: public widget_object<category::widget_tag, drawerbase::checkbox::drawer, drawerbase::checkbox::events_type, drawerbase::checkbox::scheme>
|
||||
{
|
||||
public:
|
||||
checkbox();
|
||||
|
||||
Reference in New Issue
Block a user