Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #ifndef SDL_cocoawindow_h_
24 #define SDL_cocoawindow_h_
26 #import <Cocoa/Cocoa.h>
28 #if SDL_VIDEO_OPENGL_EGL
29 #include "../SDL_egl_c.h"
56 -(
void) pauseVisibleObservation;
57 -(
void) resumeVisibleObservation;
58 -(BOOL) setFullscreenSpace:(BOOL) state;
59 -(BOOL) isInFullscreenSpace;
60 -(BOOL) isInFullscreenSpaceTransition;
65 -(
void) setPendingMoveX:(
int)x Y:(
int)y;
66 -(
void) windowDidFinishMoving;
69 -(BOOL) windowShouldClose:(
id) sender;
70 -(
void) windowDidExpose:(NSNotification *) aNotification;
71 -(
void) windowDidMove:(NSNotification *) aNotification;
72 -(
void) windowDidResize:(NSNotification *) aNotification;
73 -(
void) windowDidMiniaturize:(NSNotification *) aNotification;
74 -(
void) windowDidDeminiaturize:(NSNotification *) aNotification;
75 -(
void) windowDidBecomeKey:(NSNotification *) aNotification;
76 -(
void) windowDidResignKey:(NSNotification *) aNotification;
77 -(
void) windowDidChangeBackingProperties:(NSNotification *) aNotification;
78 -(
void) windowWillEnterFullScreen:(NSNotification *) aNotification;
79 -(
void) windowDidEnterFullScreen:(NSNotification *) aNotification;
80 -(
void) windowWillExitFullScreen:(NSNotification *) aNotification;
81 -(
void) windowDidExitFullScreen:(NSNotification *) aNotification;
82 -(NSApplicationPresentationOptions)
window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions;
85 -(BOOL) processHitTest:(NSEvent *)theEvent;
88 -(
void) mouseDown:(NSEvent *) theEvent;
89 -(
void) rightMouseDown:(NSEvent *) theEvent;
90 -(
void) otherMouseDown:(NSEvent *) theEvent;
91 -(
void) mouseUp:(NSEvent *) theEvent;
92 -(
void) rightMouseUp:(NSEvent *) theEvent;
93 -(
void) otherMouseUp:(NSEvent *) theEvent;
94 -(
void) mouseMoved:(NSEvent *) theEvent;
95 -(
void) mouseDragged:(NSEvent *) theEvent;
96 -(
void) rightMouseDragged:(NSEvent *) theEvent;
97 -(
void) otherMouseDragged:(NSEvent *) theEvent;
98 -(
void) scrollWheel:(NSEvent *) theEvent;
99 -(
void) touchesBeganWithEvent:(NSEvent *) theEvent;
100 -(
void) touchesMovedWithEvent:(NSEvent *) theEvent;
101 -(
void) touchesEndedWithEvent:(NSEvent *) theEvent;
102 -(
void) touchesCancelledWithEvent:(NSEvent *) theEvent;
105 -(
void) handleTouches:(NSTouchPhase) phase withEvent:(NSEvent*) theEvent;
110 @class SDLOpenGLContext;
122 #if SDL_VIDEO_OPENGL_EGL
A collection of pixels used in software blitting.
NSMutableArray * nscontexts
@ PENDING_OPERATION_ENTER_FULLSCREEN
void Cocoa_SetWindowTitle(_THIS, SDL_Window *window)
void Cocoa_SetWindowIcon(_THIS, SDL_Window *window, SDL_Surface *icon)
BOOL inFullscreenTransition
void Cocoa_MaximizeWindow(_THIS, SDL_Window *window)
void Cocoa_SetWindowPosition(_THIS, SDL_Window *window)
PendingWindowOperation pendingWindowOperation
int Cocoa_CreateWindow(_THIS, SDL_Window *window)
void Cocoa_RestoreWindow(_THIS, SDL_Window *window)
int Cocoa_SetWindowGammaRamp(_THIS, SDL_Window *window, const Uint16 *ramp)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void Cocoa_MinimizeWindow(_THIS, SDL_Window *window)
The type used to identify a window.
void Cocoa_AcceptDragAndDrop(SDL_Window *window, SDL_bool accept)
void Cocoa_SetWindowMaximumSize(_THIS, SDL_Window *window)
Cocoa_WindowListener * listener
EGLSurface EGLNativeWindowType * window
void Cocoa_SetWindowSize(_THIS, SDL_Window *window)
void Cocoa_RaiseWindow(_THIS, SDL_Window *window)
int Cocoa_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
void Cocoa_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
void Cocoa_HideWindow(_THIS, SDL_Window *window)
void Cocoa_DestroyWindow(_THIS, SDL_Window *window)
void Cocoa_SetWindowBordered(_THIS, SDL_Window *window, SDL_bool bordered)
void Cocoa_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
struct wl_display * display
void Cocoa_SetWindowMinimumSize(_THIS, SDL_Window *window)
@ PENDING_OPERATION_MINIMIZE
int Cocoa_SetWindowOpacity(_THIS, SDL_Window *window, float opacity)
int Cocoa_GetWindowGammaRamp(_THIS, SDL_Window *window, Uint16 *ramp)
GLenum GLenum GLsizei const GLuint GLboolean enabled
@ PENDING_OPERATION_LEAVE_FULLSCREEN
SDL_bool inWindowFullscreenTransition
int Cocoa_SetWindowHitTest(SDL_Window *window, SDL_bool enabled)
struct SDL_VideoData * videodata
const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char const char const SDL_SCANF_FORMAT_STRING char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
SDL_bool Cocoa_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
void Cocoa_ShowWindow(_THIS, SDL_Window *window)
void Cocoa_SetWindowResizable(_THIS, SDL_Window *window, SDL_bool resizable)