21 #include "../../SDL_internal.h" 23 #ifndef _SDL_cocoawindow_h 24 #define _SDL_cocoawindow_h 26 #import <Cocoa/Cocoa.h> 54 -(BOOL) setFullscreenSpace:(BOOL) state;
61 -(
void) setPendingMoveX:(
int)x Y:(
int)y;
65 -(BOOL) windowShouldClose:(
id) sender;
66 -(
void) windowDidExpose:(NSNotification *) aNotification;
67 -(
void) windowDidMove:(NSNotification *) aNotification;
68 -(
void) windowDidResize:(NSNotification *) aNotification;
69 -(
void) windowDidMiniaturize:(NSNotification *) aNotification;
70 -(
void) windowDidDeminiaturize:(NSNotification *) aNotification;
71 -(
void) windowDidBecomeKey:(NSNotification *) aNotification;
72 -(
void) windowDidResignKey:(NSNotification *) aNotification;
73 -(
void) windowDidChangeBackingProperties:(NSNotification *) aNotification;
74 -(
void) windowWillEnterFullScreen:(NSNotification *) aNotification;
75 -(
void) windowDidEnterFullScreen:(NSNotification *) aNotification;
76 -(
void) windowWillExitFullScreen:(NSNotification *) aNotification;
77 -(
void) windowDidExitFullScreen:(NSNotification *) aNotification;
78 -(NSApplicationPresentationOptions)
window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions;
81 -(BOOL) processHitTest:(NSEvent *)theEvent;
84 -(
void) mouseDown:(NSEvent *) theEvent;
85 -(
void) rightMouseDown:(NSEvent *) theEvent;
86 -(
void) otherMouseDown:(NSEvent *) theEvent;
87 -(
void) mouseUp:(NSEvent *) theEvent;
88 -(
void) rightMouseUp:(NSEvent *) theEvent;
89 -(
void) otherMouseUp:(NSEvent *) theEvent;
90 -(
void) mouseMoved:(NSEvent *) theEvent;
91 -(
void) mouseDragged:(NSEvent *) theEvent;
92 -(
void) rightMouseDragged:(NSEvent *) theEvent;
93 -(
void) otherMouseDragged:(NSEvent *) theEvent;
94 -(
void) scrollWheel:(NSEvent *) theEvent;
95 -(
void) touchesBeganWithEvent:(NSEvent *) theEvent;
96 -(
void) touchesMovedWithEvent:(NSEvent *) theEvent;
97 -(
void) touchesEndedWithEvent:(NSEvent *) theEvent;
98 -(
void) touchesCancelledWithEvent:(NSEvent *) theEvent;
101 -(
void) handleTouches:(NSTouchPhase) phase withEvent:(NSEvent*) theEvent;
106 @class SDLOpenGLContext;
int Cocoa_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
BOOL isInFullscreenSpace()
NSMutableArray * nscontexts
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_SetWindowResizable(_THIS, SDL_Window *window, SDL_bool resizable)
struct wl_display * display
static 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 windowDidFinishMoving()
void Cocoa_RestoreWindow(_THIS, SDL_Window *window)
BOOL isInFullscreenSpaceTransition()
void Cocoa_ShowWindow(_THIS, SDL_Window *window)
Cocoa_WindowListener * listener
struct SDL_VideoData * videodata
void resumeVisibleObservation()
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)
int Cocoa_SetWindowOpacity(_THIS, SDL_Window *window, float opacity)
void Cocoa_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
GLenum GLenum GLsizei const GLuint GLboolean enabled
PendingWindowOperation pendingWindowOperation
int Cocoa_CreateWindow(_THIS, SDL_Window *window)
int Cocoa_GetWindowGammaRamp(_THIS, SDL_Window *window, Uint16 *ramp)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
The type used to identify a window.
void Cocoa_SetWindowSize(_THIS, SDL_Window *window)
uint16_t Uint16
An unsigned 16-bit integer type.
BOOL inFullscreenTransition
void pauseVisibleObservation()
void Cocoa_HideWindow(_THIS, SDL_Window *window)
void Cocoa_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
void Cocoa_MaximizeWindow(_THIS, SDL_Window *window)
int Cocoa_SetWindowHitTest(SDL_Window *window, SDL_bool enabled)
void Cocoa_SetWindowMinimumSize(_THIS, SDL_Window *window)