diff options
author | David Robillard <d@drobilla.net> | 2016-09-20 08:55:33 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-20 08:55:33 -0400 |
commit | 3fbd9e6cf291387f50a580de8bb1195dac3b1143 (patch) | |
tree | b07f1c1d0a279ce08b635c7e90666020cb861388 /pugl/pugl.hpp | |
parent | cfe092dab893966db823a087ad92f17619e12f45 (diff) | |
download | pugl-3fbd9e6cf291387f50a580de8bb1195dac3b1143.tar.gz pugl-3fbd9e6cf291387f50a580de8bb1195dac3b1143.tar.bz2 pugl-3fbd9e6cf291387f50a580de8bb1195dac3b1143.zip |
Fix C++ bindings
Diffstat (limited to 'pugl/pugl.hpp')
-rw-r--r-- | pugl/pugl.hpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/pugl/pugl.hpp b/pugl/pugl.hpp index d405759..8232887 100644 --- a/pugl/pugl.hpp +++ b/pugl/pugl.hpp @@ -38,9 +38,6 @@ public: { puglSetHandle(_view, this); puglSetEventFunc(_view, _onEvent); - puglSetCloseFunc(_view, _onClose); - puglSetReshapeFunc(_view, _onReshape); - puglSetDisplayFunc(_view, _onDisplay); } virtual ~View() { puglDestroy(_view); } @@ -81,10 +78,7 @@ public: virtual void hideWindow() { puglHideWindow(_view); } virtual PuglNativeWindow getNativeWindow() { return puglGetNativeWindow(_view); } - virtual void onEvent(const PuglEvent* event) {} - virtual void onClose() {} - virtual void onReshape(int width, int height) {} - virtual void onDisplay() {} + virtual void onEvent(const PuglEvent* event) = 0; virtual void* getContext() { return puglGetContext(_view); } virtual void ignoreKeyRepeat(bool ignore) { puglIgnoreKeyRepeat(_view, ignore); } @@ -99,15 +93,6 @@ private: static void _onEvent(PuglView* view, const PuglEvent* event) { ((View*)puglGetHandle(view))->onEvent(event); } - static void _onClose(PuglView* view) { - ((View*)puglGetHandle(view))->onClose(); - } - static void _onReshape(PuglView* view, int width, int height) { - ((View*)puglGetHandle(view))->onReshape(width, height); - } - static void _onDisplay(PuglView* view) { - ((View*)puglGetHandle(view))->onDisplay(); - } PuglView* _view; }; |