22#if !defined(FL_PLATFORM_H)
23# error "Never use <FL/mac.H> directly; include <FL/platform.H> instead."
27 @class NSOpenGLContext;
28# ifndef GL_SILENCE_DEPRECATION
29# define GL_SILENCE_DEPRECATION 1
31#elif defined(__cplusplus)
32 class NSOpenGLContext;
34extern NSOpenGLContext *fl_mac_glcontext(
GLContext rc);
38typedef FLWindow *Window;
40typedef class FLWindow *Window;
45#if (defined(FL_LIBRARY) || defined(FL_INTERNALS))
48#include <ApplicationServices/ApplicationServices.h>
51#ifndef MAC_OS_X_VERSION_10_4
52#define MAC_OS_X_VERSION_10_4 1040
54#ifndef MAC_OS_X_VERSION_10_5
55#define MAC_OS_X_VERSION_10_5 1050
57#ifndef MAC_OS_X_VERSION_10_6
58#define MAC_OS_X_VERSION_10_6 1060
60#ifndef MAC_OS_X_VERSION_10_7
61#define MAC_OS_X_VERSION_10_7 1070
63#ifndef MAC_OS_X_VERSION_10_8
64#define MAC_OS_X_VERSION_10_8 1080
66#ifndef MAC_OS_X_VERSION_10_9
67#define MAC_OS_X_VERSION_10_9 1090
69#ifndef MAC_OS_X_VERSION_10_10
70#define MAC_OS_X_VERSION_10_10 101000
72#ifndef MAC_OS_X_VERSION_10_11
73#define MAC_OS_X_VERSION_10_11 101100
75#ifndef MAC_OS_X_VERSION_10_12
76#define MAC_OS_X_VERSION_10_12 101200
78#ifndef MAC_OS_X_VERSION_10_13
79#define MAC_OS_X_VERSION_10_13 101300
81#ifndef MAC_OS_X_VERSION_10_14
82#define MAC_OS_X_VERSION_10_14 101400
84#ifndef MAC_OS_X_VERSION_10_15
85#define MAC_OS_X_VERSION_10_15 101500
87#ifndef MAC_OS_X_VERSION_10_16
88#define MAC_OS_X_VERSION_10_16 101600
90#ifndef MAC_OS_VERSION_11_0
91#define MAC_OS_VERSION_11_0 110000
93#ifndef MAC_OS_VERSION_12_0
94#define MAC_OS_VERSION_12_0 120000
96#ifndef MAC_OS_VERSION_13_0
97#define MAC_OS_VERSION_13_0 130000
99#ifndef MAC_OS_VERSION_14_0
100#define MAC_OS_VERSION_14_0 140000
102#ifndef MAC_OS_VERSION_15_0
103#define MAC_OS_VERSION_15_0 150000
107#ifndef NSINTEGER_DEFINED
108#if defined(__LP64__) && __LP64__
109typedef long NSInteger;
110typedef unsigned long NSUInteger;
112typedef int NSInteger;
113typedef unsigned int NSUInteger;
117#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
118typedef CGImageAlphaInfo CGBitmapInfo;
121struct flCocoaRegion {
126#ifndef CGFLOAT_DEFINED
127#if defined(__LP64__) && __LP64__
128typedef double CGFloat;
130typedef float CGFloat;
136typedef struct CGContext* CGContextRef;
140extern CGContextRef fl_gc;
157void fl_mac_set_about(Fl_Callback *cb, void *user_data, int shortcut = 0);
The Fl_Gl_Window widget sets things up so OpenGL works.
Definition Fl_Gl_Window.H:56
This widget produces an actual window.
Definition Fl_Window.H:55
int fl_mac_os_version
The version number of the running Mac OS X (e.g., 100604 for 10.6.4, 101300 for 10....
FLWindow * fl_mac_xid(const Fl_Window *win)
Returns the macOS-specific window reference corresponding to the given Fl_Window object.
CGContextRef fl_mac_gc()
Returns the macOS-specific graphics context for the current window.
Fl_Window * fl_mac_find(FLWindow *)
Returns the Fl_Window corresponding to the given macOS-specific window reference.