22 #if !defined(FL_PLATFORM_H) 23 # error "Never use <FL/mac.H> directly; include <FL/platform.H> instead." 24 #endif // !FL_PLATFORM_H 28 typedef FLWindow *Window;
30 typedef class FLWindow *Window;
35 #if (defined(FL_LIBRARY) || defined(FL_INTERNALS)) // this part must be compiled when building the FLTK libraries 38 #include <ApplicationServices/ApplicationServices.h> 39 #undef check // because of Fl::check() 41 #ifndef MAC_OS_X_VERSION_10_4 42 #define MAC_OS_X_VERSION_10_4 1040 44 #ifndef MAC_OS_X_VERSION_10_5 45 #define MAC_OS_X_VERSION_10_5 1050 47 #ifndef MAC_OS_X_VERSION_10_6 48 #define MAC_OS_X_VERSION_10_6 1060 50 #ifndef MAC_OS_X_VERSION_10_7 51 #define MAC_OS_X_VERSION_10_7 1070 53 #ifndef MAC_OS_X_VERSION_10_8 54 #define MAC_OS_X_VERSION_10_8 1080 56 #ifndef MAC_OS_X_VERSION_10_9 57 #define MAC_OS_X_VERSION_10_9 1090 59 #ifndef MAC_OS_X_VERSION_10_10 60 #define MAC_OS_X_VERSION_10_10 101000 62 #ifndef MAC_OS_X_VERSION_10_11 63 #define MAC_OS_X_VERSION_10_11 101100 65 #ifndef MAC_OS_X_VERSION_10_12 66 #define MAC_OS_X_VERSION_10_12 101200 68 #ifndef MAC_OS_X_VERSION_10_13 69 #define MAC_OS_X_VERSION_10_13 101300 71 #ifndef MAC_OS_X_VERSION_10_14 72 #define MAC_OS_X_VERSION_10_14 101400 76 #ifndef NSINTEGER_DEFINED // appears with 10.5 in NSObjCRuntime.h 77 #if defined(__LP64__) && __LP64__ 78 typedef long NSInteger;
79 typedef unsigned long NSUInteger;
81 typedef int NSInteger;
82 typedef unsigned int NSUInteger;
86 #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4 87 typedef CGImageAlphaInfo CGBitmapInfo;
90 struct flCocoaRegion {
95 #ifndef CGFLOAT_DEFINED //appears with 10.5 in CGBase.h 96 #if defined(__LP64__) && __LP64__ 97 typedef double CGFloat;
99 typedef float CGFloat;
101 #endif // CGFLOAT_DEFINED 105 typedef struct CGContext* CGContextRef;
107 #endif // FL_LIBRARY || FL_INTERNALS 109 extern CGContextRef fl_gc;
162 static void custom_application_menu_items(
const Fl_Menu_Item *m);
int fl_mac_os_version
The version number of the running Mac OS X (e.g., 100604 for 10.6.4, 101300 for 10.13).
void fl_mac_set_about(Fl_Callback *cb, void *user_data, int shortcut=0)
Attaches a callback to the "About myprog" item of the system application menu.