23 #ifndef _SDL_cocoawindow_h
24 #define _SDL_cocoawindow_h
26 #import <Cocoa/Cocoa.h>
38 -(
void) pauseVisibleObservation;
39 -(
void) resumeVisibleObservation;
43 -(
BOOL) windowShouldClose:(
id) sender;
44 -(
void) windowDidExpose:(NSNotification *) aNotification;
45 -(
void) windowDidMove:(NSNotification *) aNotification;
46 -(
void) windowDidResize:(NSNotification *) aNotification;
47 -(
void) windowDidMiniaturize:(NSNotification *) aNotification;
48 -(
void) windowDidDeminiaturize:(NSNotification *) aNotification;
49 -(
void) windowDidBecomeKey:(NSNotification *) aNotification;
50 -(
void) windowDidResignKey:(NSNotification *) aNotification;
53 -(
void) mouseDown:(NSEvent *) theEvent;
54 -(
void) rightMouseDown:(NSEvent *) theEvent;
55 -(
void) otherMouseDown:(NSEvent *) theEvent;
56 -(
void) mouseUp:(NSEvent *) theEvent;
57 -(
void) rightMouseUp:(NSEvent *) theEvent;
58 -(
void) otherMouseUp:(NSEvent *) theEvent;
59 -(
void) mouseMoved:(NSEvent *) theEvent;
60 -(
void) mouseDragged:(NSEvent *) theEvent;
61 -(
void) rightMouseDragged:(NSEvent *) theEvent;
62 -(
void) otherMouseDragged:(NSEvent *) theEvent;
63 -(
void) scrollWheel:(NSEvent *) theEvent;
64 -(
void) touchesBeganWithEvent:(NSEvent *) theEvent;
65 -(
void) touchesMovedWithEvent:(NSEvent *) theEvent;
66 -(
void) touchesEndedWithEvent:(NSEvent *) theEvent;
67 -(
void) touchesCancelledWithEvent:(NSEvent *) theEvent;
76 -(
void) handleTouches:(cocoaTouchType)type withEvent:(NSEvent*) event;
81 @class SDLOpenGLContext;
int Cocoa_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
NSMutableArray * nscontexts
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
void Cocoa_MinimizeWindow(_THIS, SDL_Window *window)
void Cocoa_SetWindowIcon(_THIS, SDL_Window *window, SDL_Surface *icon)
void Cocoa_SetWindowMaximumSize(_THIS, SDL_Window *window)
void Cocoa_SetWindowBordered(_THIS, SDL_Window *window, SDL_bool bordered)
A collection of pixels used in software blitting.
void Cocoa_SetWindowTitle(_THIS, SDL_Window *window)
void Cocoa_SetWindowPosition(_THIS, SDL_Window *window)
void Cocoa_RestoreWindow(_THIS, SDL_Window *window)
void Cocoa_ShowWindow(_THIS, SDL_Window *window)
Cocoa_WindowListener * listener
struct SDL_VideoData * videodata
int Cocoa_SetWindowGammaRamp(_THIS, SDL_Window *window, const Uint16 *ramp)
void Cocoa_DestroyWindow(_THIS, SDL_Window *window)
void Cocoa_RaiseWindow(_THIS, SDL_Window *window)
SDL_bool Cocoa_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
void Cocoa_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
int Cocoa_CreateWindow(_THIS, SDL_Window *window)
int Cocoa_GetWindowGammaRamp(_THIS, SDL_Window *window, Uint16 *ramp)
void Cocoa_SetWindowSize(_THIS, SDL_Window *window)
uint16_t Uint16
An unsigned 16-bit integer type.
void Cocoa_HideWindow(_THIS, SDL_Window *window)
void Cocoa_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
void Cocoa_MaximizeWindow(_THIS, SDL_Window *window)
void Cocoa_SetWindowMinimumSize(_THIS, SDL_Window *window)
typedef BOOL(WINAPI *PFNWGLSETSTEREOEMITTERSTATE3DLPROC)(HDC hDC