rename widget_colors to widget_geometrics
This commit is contained in:
parent
50b982eca7
commit
0122a8b98b
46
include/nana/gui/detail/widget_geometrics.hpp
Normal file
46
include/nana/gui/detail/widget_geometrics.hpp
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* Widget Geometrics
|
||||||
|
* Nana C++ Library(http://www.nanapro.org)
|
||||||
|
* Copyright(C) 2003-2016 Jinhao(cnjinhao@hotmail.com)
|
||||||
|
*
|
||||||
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
* http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
*
|
||||||
|
* @file: nana/gui/widget_geometrics.hpp
|
||||||
|
* @description:
|
||||||
|
*/
|
||||||
|
#ifndef NANA_DETAIL_WIDGET_GEOMETRICS_HPP
|
||||||
|
#define NANA_DETAIL_WIDGET_GEOMETRICS_HPP
|
||||||
|
|
||||||
|
#include <nana/gui/basis.hpp>
|
||||||
|
#include <memory>
|
||||||
|
namespace nana
|
||||||
|
{
|
||||||
|
class color_proxy
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
color_proxy(const color_proxy&);
|
||||||
|
color_proxy(color_rgb);
|
||||||
|
color_proxy(colors);
|
||||||
|
color_proxy& operator=(const color_proxy&);
|
||||||
|
color_proxy& operator=(const ::nana::color&);
|
||||||
|
color_proxy& operator=(color_rgb);
|
||||||
|
color_proxy& operator=(colors);
|
||||||
|
color get_color() const;
|
||||||
|
operator color() const;
|
||||||
|
private:
|
||||||
|
std::shared_ptr<color> color_;
|
||||||
|
};//end namespace color_proxy
|
||||||
|
|
||||||
|
struct widget_geometrics
|
||||||
|
{
|
||||||
|
virtual ~widget_geometrics() = default;
|
||||||
|
|
||||||
|
color_proxy activated{ static_cast<color_rgb>(0x60C8FD) };
|
||||||
|
color_proxy background{colors::button_face};
|
||||||
|
color_proxy foreground{colors::black};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
x
Reference in New Issue
Block a user