add missing interface file
This commit is contained in:
parent
ff198063ce
commit
1dc78bb5fd
22
include/nana/gui/detail/widget_notifier_interface.hpp
Normal file
22
include/nana/gui/detail/widget_notifier_interface.hpp
Normal file
@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <nana/gui/widgets/widget.hpp>
|
||||
|
||||
namespace nana {
|
||||
namespace detail {
|
||||
|
||||
class widget_notifier_interface {
|
||||
public:
|
||||
virtual widget* widget_ptr() const = 0;
|
||||
virtual void destroy() = 0;
|
||||
virtual std::wstring caption() = 0;
|
||||
virtual void caption(std::wstring text) = 0;
|
||||
|
||||
static std::unique_ptr<widget_notifier_interface> get_notifier(widget* wdg);
|
||||
private:
|
||||
widget::notifier* p;
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
} // namespace nana
|
Loading…
x
Reference in New Issue
Block a user