diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-12-07 10:54:29 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-12-07 10:54:41 +0100 |
| commit | 939d536b66c633b42eeddfe3dfa775e7fab0055a (patch) | |
| tree | dc93d306c029e972fbf7bd0f7fd553044e035a85 /src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H | |
| parent | 16c9641797c631caee5499f7fdd300fab714b8f8 (diff) | |
Fix for fltk.coredev "reentrant calls with Fl_Window::resize" - cont'd
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H index 4bc7d3783..3003e3904 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H +++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H @@ -24,6 +24,7 @@ #define FL_COCOA_WINDOW_DRIVER_H #include "../../Fl_Window_Driver.H" +#include <FL/Fl_Plugin.H> #include <ApplicationServices/ApplicationServices.h> class Fl_Image; @@ -163,4 +164,12 @@ public: NSImage *icon_image; }; +class Fl_Cocoa_Plugin : public Fl_Plugin { +public: + Fl_Cocoa_Plugin(const char *pluginName) : Fl_Plugin(klass(), pluginName) { } + virtual const char *klass() { return "fltk:cocoa"; } + virtual const char *name() = 0; + virtual void resize(Fl_Gl_Window *glw, int x, int y, int w, int h) = 0; +}; + #endif // FL_COCOA_WINDOW_DRIVER_H |
