summaryrefslogtreecommitdiff
path: root/src/gui_window.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_window.hh')
-rw-r--r--src/gui_window.hh32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gui_window.hh b/src/gui_window.hh
new file mode 100644
index 0000000..1573cb8
--- /dev/null
+++ b/src/gui_window.hh
@@ -0,0 +1,32 @@
+// -*- mode: c++; c-basic-offset: 2; -*-
+
+#ifndef GUI_WINDOW_HH
+#define GUI_WINDOW_HH
+
+#include <string>
+
+class GuiWindow {
+public:
+ class Listener {
+ public:
+ virtual ~Listener() {}
+
+ protected:
+ Listener() {}
+ };
+
+ virtual ~GuiWindow() {}
+
+ virtual void set_title(std::string const& title) = 0;
+
+ // Can be used by implementation if needed
+ virtual void* impl() const {
+ return nullptr;
+ }
+
+protected:
+ GuiWindow() {}
+ GuiWindow(GuiWindow const&) = delete;
+};
+
+#endif // GUI_WINDOW_HH