Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #ifndef SDL_cocoavideo_h_
24 #define SDL_cocoavideo_h_
28 #include <ApplicationServices/ApplicationServices.h>
29 #include <IOKit/pwr_mgt/IOPMLib.h>
30 #include <Cocoa/Cocoa.h>
33 #include "../SDL_sysvideo.h"
43 #ifndef MAC_OS_X_VERSION_10_12
44 #define DECLARE_EVENT(name) static const NSEventType NSEventType##name = NS##name
63 #define DECLARE_MODIFIER_FLAG(name) static const NSUInteger NSEventModifierFlag##name = NS##name##KeyMask
70 #undef DECLARE_MODIFIER_FLAG
74 #define DECLARE_WINDOW_MASK(name) static const unsigned int NSWindowStyleMask##name = NS##name##WindowMask
87 #undef DECLARE_WINDOW_MASK
89 #define DECLARE_ALERT_STYLE(name) static const NSUInteger NSAlertStyle##name = NS##name##AlertStyle
93 #undef DECLARE_ALERT_STYLE
98 @class SDLTranslatorResponder;
117 #if MAC_OS_X_VERSION_MAX_ALLOWED < 101100
118 #define NSEventSubtypeTouch NSTouchEventSubtype
119 #define NSEventSubtypeMouseEvent NSMouseEventSubtype
static const NSUInteger NSEventModifierFlagCapsLock
A collection of pixels used in software blitting.
#define DECLARE_WINDOW_MASK(name)
NSImage * Cocoa_CreateImage(SDL_Surface *surface)
BOOL(WINAPI *CloseTouchInputHandle)(HTOUCHINPUT)
unsigned int modifierFlags
#define DECLARE_ALERT_STYLE(name)
static const unsigned int NSWindowStyleMaskHUDWindow
BOOL screensaver_use_iopm
static const unsigned int NSWindowStyleMaskDocModalWindow
static const NSUInteger NSEventModifierFlagOption
#define DECLARE_EVENT(name)
static const NSEventMask NSEventMaskAny
NSInteger clipboard_count
SDLTranslatorResponder * fieldEdit
#define DECLARE_MODIFIER_FLAG(name)
static const unsigned int NSWindowStyleMaskUtilityWindow
IOPMAssertionID screensaver_assertion
Uint32 screensaver_activity