From b7a8bb249da3feab78ca1b6c5f2d7ba5edb91230 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Mon, 25 May 2015 20:17:27 +0800 Subject: [PATCH] add missing header file --- .../gui/detail/widget_notifier_interface.hpp | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 include/nana/gui/detail/widget_notifier_interface.hpp diff --git a/include/nana/gui/detail/widget_notifier_interface.hpp b/include/nana/gui/detail/widget_notifier_interface.hpp new file mode 100644 index 00000000..204bdeea --- /dev/null +++ b/include/nana/gui/detail/widget_notifier_interface.hpp @@ -0,0 +1,39 @@ +/* + * Widget Notifier Interface + * Nana C++ Library(http://www.nanapro.org) + * Copyright(C) 2003-2015 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/detail/widget_notifier_interface.hpp + */ + +#ifndef NANA_GUI_DETAIL_WIDGET_NOTIFIER_INTERFACE_HEADER +#define NANA_GUI_DETAIL_WIDGET_NOTIFIER_INTERFACE_HEADER +#include +#include + +namespace nana +{ + class widget; //forward declaration + + namespace detail + { + class widget_notifier_interface + { + public: + virtual ~widget_notifier_interface() = default; + + static std::unique_ptr get_notifier(widget*); //defined in nana/gui/widgets/widget.cpp + + virtual widget* widget_ptr() const = 0; + virtual void destroy() = 0; + virtual std::wstring caption() = 0; + virtual void caption(std::wstring) = 0; + }; + } +} + +#endif \ No newline at end of file