summaryrefslogtreecommitdiff
path: root/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H
index a1f278a63..063985b7e 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H
+++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H
@@ -26,6 +26,7 @@
#define FL_COCOA_SCREEN_DRIVER_H
#include <FL/Fl_Screen_Driver.H>
+#include <ApplicationServices/ApplicationServices.h>
/*
Move everything here that manages the native screen interface.
@@ -39,6 +40,11 @@
class Fl_Window;
+#ifdef __OBJC__
+@class CALayer;
+#else
+class CALayer;
+#endif // __OBJC__
class FL_EXPORT Fl_Cocoa_Screen_Driver : public Fl_Screen_Driver
@@ -87,6 +93,7 @@ public:
int insertion_point_location(int *px, int *py, int *pheight);
virtual int dnd(int use_selection);
virtual int compose(int &del);
+ static void draw_layer_to_context(CALayer *layer, CGContextRef gc, int w, int h);
};