summaryrefslogtreecommitdiff
path: root/src/gui_window.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-06-15 23:20:00 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-07-22 22:08:54 +0200
commitcb17c3035bbd80bd8ea6718bae4c57cfb2555653 (patch)
treef454181a2f58071f5f2ba4408e7e179838ed3fb4 /src/gui_window.hh
parentface8e0a7d5f530ee3e5e63ab1e3d6ecd497326b (diff)
Initial monitor GUI
Basic monitor functionality, GTK-3.0 and QT5 backends
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