SDL  2.0
SDL_cocoavideo.h File Reference
#include "../../SDL_internal.h"
#include "SDL_opengl.h"
#include <ApplicationServices/ApplicationServices.h>
#include <IOKit/pwr_mgt/IOPMLib.h>
#include <Cocoa/Cocoa.h>
#include "SDL_keycode.h"
#include "../SDL_sysvideo.h"
#include "SDL_cocoaclipboard.h"
#include "SDL_cocoaevents.h"
#include "SDL_cocoakeyboard.h"
#include "SDL_cocoamodes.h"
#include "SDL_cocoamouse.h"
#include "SDL_cocoaopengl.h"
#include "SDL_cocoawindow.h"
+ Include dependency graph for SDL_cocoavideo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SDL_VideoData
 

Macros

#define DECLARE_EVENT(name)   static const NSEventType NSEventType##name = NS##name
 
#define DECLARE_MODIFIER_FLAG(name)   static const NSUInteger NSEventModifierFlag##name = NS##name##KeyMask
 
#define DECLARE_WINDOW_MASK(name)   static const unsigned int NSWindowStyleMask##name = NS##name##WindowMask
 
#define DECLARE_ALERT_STYLE(name)   static const NSUInteger NSAlertStyle##name = NS##name##AlertStyle
 

Functions

 DECLARE_EVENT (LeftMouseDown)
 
 DECLARE_EVENT (LeftMouseUp)
 
 DECLARE_EVENT (RightMouseDown)
 
 DECLARE_EVENT (RightMouseUp)
 
 DECLARE_EVENT (OtherMouseDown)
 
 DECLARE_EVENT (OtherMouseUp)
 
 DECLARE_EVENT (MouseMoved)
 
 DECLARE_EVENT (LeftMouseDragged)
 
 DECLARE_EVENT (RightMouseDragged)
 
 DECLARE_EVENT (OtherMouseDragged)
 
 DECLARE_EVENT (ScrollWheel)
 
 DECLARE_EVENT (KeyDown)
 
 DECLARE_EVENT (KeyUp)
 
 DECLARE_EVENT (FlagsChanged)
 
 DECLARE_MODIFIER_FLAG (Shift)
 
 DECLARE_MODIFIER_FLAG (Control)
 
 DECLARE_MODIFIER_FLAG (Command)
 
 DECLARE_MODIFIER_FLAG (NumericPad)
 
 DECLARE_MODIFIER_FLAG (Help)
 
 DECLARE_MODIFIER_FLAG (Function)
 
 DECLARE_WINDOW_MASK (Borderless)
 
 DECLARE_WINDOW_MASK (Titled)
 
 DECLARE_WINDOW_MASK (Closable)
 
 DECLARE_WINDOW_MASK (Miniaturizable)
 
 DECLARE_WINDOW_MASK (Resizable)
 
 DECLARE_WINDOW_MASK (TexturedBackground)
 
 DECLARE_WINDOW_MASK (UnifiedTitleAndToolbar)
 
 DECLARE_WINDOW_MASK (FullScreen)
 
 DECLARE_ALERT_STYLE (Warning)
 
 DECLARE_ALERT_STYLE (Informational)
 
 DECLARE_ALERT_STYLE (Critical)
 
NSImage * Cocoa_CreateImage (SDL_Surface *surface)
 

Variables

static const NSEventMask NSEventMaskAny = NSAnyEventMask
 
static const NSUInteger NSEventModifierFlagCapsLock = NSAlphaShiftKeyMask
 
static const NSUInteger NSEventModifierFlagOption = NSAlternateKeyMask
 
static const unsigned int NSWindowStyleMaskUtilityWindow = NSUtilityWindowMask
 
static const unsigned int NSWindowStyleMaskDocModalWindow = NSDocModalWindowMask
 
static const unsigned int NSWindowStyleMaskHUDWindow = NSHUDWindowMask
 

Macro Definition Documentation

#define DECLARE_ALERT_STYLE (   name)    static const NSUInteger NSAlertStyle##name = NS##name##AlertStyle

Definition at line 89 of file SDL_cocoavideo.h.

#define DECLARE_EVENT (   name)    static const NSEventType NSEventType##name = NS##name

Definition at line 44 of file SDL_cocoavideo.h.

#define DECLARE_MODIFIER_FLAG (   name)    static const NSUInteger NSEventModifierFlag##name = NS##name##KeyMask

Definition at line 63 of file SDL_cocoavideo.h.

#define DECLARE_WINDOW_MASK (   name)    static const unsigned int NSWindowStyleMask##name = NS##name##WindowMask

Definition at line 74 of file SDL_cocoavideo.h.

Function Documentation

NSImage* Cocoa_CreateImage ( SDL_Surface surface)
DECLARE_ALERT_STYLE ( Warning  )
DECLARE_ALERT_STYLE ( Informational  )
DECLARE_ALERT_STYLE ( Critical  )
DECLARE_EVENT ( LeftMouseDown  )
DECLARE_EVENT ( LeftMouseUp  )
DECLARE_EVENT ( RightMouseDown  )
DECLARE_EVENT ( RightMouseUp  )
DECLARE_EVENT ( OtherMouseDown  )
DECLARE_EVENT ( OtherMouseUp  )
DECLARE_EVENT ( MouseMoved  )
DECLARE_EVENT ( LeftMouseDragged  )
DECLARE_EVENT ( RightMouseDragged  )
DECLARE_EVENT ( OtherMouseDragged  )
DECLARE_EVENT ( ScrollWheel  )
DECLARE_EVENT ( KeyDown  )
DECLARE_EVENT ( KeyUp  )
DECLARE_EVENT ( FlagsChanged  )
DECLARE_MODIFIER_FLAG ( Shift  )
DECLARE_MODIFIER_FLAG ( Control  )
DECLARE_MODIFIER_FLAG ( Command  )
DECLARE_MODIFIER_FLAG ( NumericPad  )
DECLARE_MODIFIER_FLAG ( Help  )
DECLARE_MODIFIER_FLAG ( Function  )
DECLARE_WINDOW_MASK ( Borderless  )
DECLARE_WINDOW_MASK ( Titled  )
DECLARE_WINDOW_MASK ( Closable  )
DECLARE_WINDOW_MASK ( Miniaturizable  )
DECLARE_WINDOW_MASK ( Resizable  )
DECLARE_WINDOW_MASK ( TexturedBackground  )
DECLARE_WINDOW_MASK ( UnifiedTitleAndToolbar  )
DECLARE_WINDOW_MASK ( FullScreen  )

Variable Documentation

const NSEventMask NSEventMaskAny = NSAnyEventMask
static

Definition at line 61 of file SDL_cocoavideo.h.

const NSUInteger NSEventModifierFlagCapsLock = NSAlphaShiftKeyMask
static

Definition at line 71 of file SDL_cocoavideo.h.

const NSUInteger NSEventModifierFlagOption = NSAlternateKeyMask
static

Definition at line 72 of file SDL_cocoavideo.h.

const unsigned int NSWindowStyleMaskDocModalWindow = NSDocModalWindowMask
static

Definition at line 85 of file SDL_cocoavideo.h.

const unsigned int NSWindowStyleMaskHUDWindow = NSHUDWindowMask
static

Definition at line 86 of file SDL_cocoavideo.h.

const unsigned int NSWindowStyleMaskUtilityWindow = NSUtilityWindowMask
static

Definition at line 84 of file SDL_cocoavideo.h.