diff options
| author | Manolo Gouy <Manolo> | 2016-03-26 14:36:11 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-26 14:36:11 +0000 |
| commit | 915d6c643a8b4e31ea79fdad81761d26b42530f5 (patch) | |
| tree | 8756c72f988596beb8e55382f40ff04142816057 /FL/mac.H | |
| parent | e86e4a6ab0e3ad8ccbb694909383f5d72b9b4c92 (diff) | |
Isolate the definition of the 3 public, OS-dependent types (Fl_Offscreen, Fl_Region, Fl_Bitmask).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/mac.H')
| -rw-r--r-- | FL/mac.H | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -33,18 +33,17 @@ typedef class FLWindow *Window; // pointer to the FLWindow objective-c class #endif // __OBJC__ #include <FL/Fl_Device.H> +#include "src/drivers/Darwin/Fl_Darwin_System_Driver.H" #if !(defined(FL_LIBRARY) || defined(FL_INTERNALS)) // this part is used when compiling an application program # include <FL/Fl_Widget.H> -typedef struct flCocoaRegion* Fl_Region; typedef struct CGContext* CGContextRef; typedef struct OpaquePMPrintSettings* PMPrintSettings; typedef struct OpaquePMPageFormat* PMPageFormat; typedef struct OpaquePMPrintSession* PMPrintSession; typedef struct CGImage* CGImageRef; typedef struct __CFData* CFMutableDataRef; // used in Fl_Copy_Surface.H -typedef CGContextRef Fl_Offscreen; #else // this part must be compiled when building the FLTK libraries @@ -99,15 +98,14 @@ class NSOpenGLContext; class CALayer; #endif // __OBJC__ -typedef CGContextRef Fl_Offscreen; #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4 typedef CGImageAlphaInfo CGBitmapInfo; #endif -typedef struct flCocoaRegion { +struct flCocoaRegion { int count; CGRect *rects; -} *Fl_Region; // a region is the union of a series of rectangles +}; // a region is the union of a series of rectangles # include "Fl_Window.H" # include "../src/Fl_Font.H" @@ -209,7 +207,6 @@ extern Window fl_window; #endif // FL_LIBRARY || FL_INTERNALS -typedef CGImageRef Fl_Bitmask; extern CGContextRef fl_gc; |
