diff options
| author | Manolo Gouy <Manolo> | 2016-03-18 18:20:11 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-18 18:20:11 +0000 |
| commit | fa9a33eaeeddb85a6afedc2d02d0d67f290b0822 (patch) | |
| tree | b881473f229f5edccf5fef79c335de8b4faf33d4 /FL/mac.H | |
| parent | 3e0e68bb59058eb86af143ed2946197aa7cfca1c (diff) | |
Beginning of Albrecht's plan for Fl_Window and Fl_Window_Driver classes.
Still unclear whether the implementation of the flush() functions follows the plan.
The Fl_Printer class is fully rewritten under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/mac.H')
| -rw-r--r-- | FL/mac.H | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |
