summaryrefslogtreecommitdiff
path: root/plugingui/plugingui.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/plugingui.h')
-rw-r--r--plugingui/plugingui.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugingui/plugingui.h b/plugingui/plugingui.h
index d639a16..af05478 100644
--- a/plugingui/plugingui.h
+++ b/plugingui/plugingui.h
@@ -40,19 +40,18 @@
namespace GUI {
-class PluginGUI : public Thread, public MessageReceiver, public Listener {
+class PluginGUI
+ : public MessageReceiver
+ , public Listener
+{
public:
- PluginGUI();
+ PluginGUI(void* native_window = nullptr);
virtual ~PluginGUI();
- void thread_main();
-
//! Process all events and messages in queue
//! \return true if not closing, returns false if closing.
bool processEvents();
- void stopThread();
-
void init();
void deinit();
@@ -65,7 +64,6 @@ public:
DGWindow* window{nullptr};
EventHandler* eventhandler{nullptr};
-
Config* config{nullptr};
Notifier<> closeNotifier;
@@ -76,6 +74,8 @@ public:
private:
void closeEventHandler();
+ void* native_window{nullptr};
+
volatile bool running{true};
volatile bool closing{false};
volatile bool initialised{false};