diff options
| author | Manolo Gouy <Manolo> | 2016-04-02 16:08:56 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-02 16:08:56 +0000 |
| commit | 64c96b9098a8cc173eae58a3e2bc4cdaa2de11c8 (patch) | |
| tree | 84e2b2e9554b224c4e1e4baf4e88cea0acde74d9 /src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H | |
| parent | ddc95025fd371a645782972b048e867e94767a28 (diff) | |
Continue removing from class Fl_X all what is not window-related.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H | 7 |
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); }; |
