summaryrefslogtreecommitdiff
path: root/FL/mac.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/mac.H')
-rw-r--r--FL/mac.H3
1 files changed, 3 insertions, 0 deletions
diff --git a/FL/mac.H b/FL/mac.H
index c6518378e..a909a294d 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -91,10 +91,12 @@ typedef unsigned int NSUInteger;
@class NSCursor;
@class NSOpenGLPixelFormat;
@class NSOpenGLContext;
+@class CALayer;
#else
class NSCursor;
class NSOpenGLPixelFormat;
class NSOpenGLContext;
+class CALayer;
#endif // __OBJC__
typedef CGContextRef Fl_Offscreen;
@@ -198,6 +200,7 @@ public:
static int calc_mac_os_version(void); // computes the fl_mac_os_version global variable
static void clip_to_rounded_corners(CGContextRef gc, int w, int h);
static void complete_copy_pdf_and_tiff(CGContextRef gc, CFMutableDataRef pdfdata);
+ static void draw_layer_to_context(CALayer *layer, CGContextRef gc, int w, int h);
private:
CGRect* subRect_; // makes sure subwindow remains inside its parent window
// stores 3 binary flags: whether window is mapped to retina display; whether resolution just changed;