summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_pugl.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-03-12 10:54:52 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-12 10:54:52 +0100
commitb9773f6eecea38e6a5aa28745cc6fe79aa2d441f (patch)
tree3740949c67bb6bfe533b35974f230c0443ce2c57 /plugingui/nativewindow_pugl.h
parent4bda33e204fafc4fdee6d14d5167ca7a801400ae (diff)
Add parent widget pointer for contained plugin windows. Remove threaded event handling and make all event handling depend on processEcvents being called with a regular (~50ms) interval.
Diffstat (limited to 'plugingui/nativewindow_pugl.h')
-rw-r--r--plugingui/nativewindow_pugl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/nativewindow_pugl.h b/plugingui/nativewindow_pugl.h
index 2c9fbc7..13ca1e7 100644
--- a/plugingui/nativewindow_pugl.h
+++ b/plugingui/nativewindow_pugl.h
@@ -38,7 +38,7 @@ class Window;
class NativeWindowPugl : public NativeWindow {
public:
- NativeWindowPugl(Window *window);
+ NativeWindowPugl(void* native_window, Window& window);
~NativeWindowPugl();
void init();
@@ -57,7 +57,8 @@ public:
Event *peekNextEvent();
private:
- Window* window{nullptr};
+ Window& window;
+ void* native_window{nullptr};
PuglView* view{nullptr};
std::list<Event*> eventq;