From 0122a8b98b8e0d6f3e27fa543e0d972d5b269225 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sun, 22 May 2016 18:03:44 +0800 Subject: [PATCH] rename widget_colors to widget_geometrics --- include/nana/gui/detail/widget_geometrics.hpp | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 include/nana/gui/detail/widget_geometrics.hpp diff --git a/include/nana/gui/detail/widget_geometrics.hpp b/include/nana/gui/detail/widget_geometrics.hpp new file mode 100644 index 00000000..1cb8cd3e --- /dev/null +++ b/include/nana/gui/detail/widget_geometrics.hpp @@ -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 +#include +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_; + };//end namespace color_proxy + + struct widget_geometrics + { + virtual ~widget_geometrics() = default; + + color_proxy activated{ static_cast(0x60C8FD) }; + color_proxy background{colors::button_face}; + color_proxy foreground{colors::black}; + }; +} + +#endif \ No newline at end of file