Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
71 lines (56 loc) · 1.98 KB

SDL_cocoavideo.h

File metadata and controls

71 lines (56 loc) · 1.98 KB
 
Apr 8, 2011
Apr 8, 2011
2
3
Simple DirectMedia Layer
Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
Apr 8, 2011
Apr 8, 2011
5
6
7
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Apr 8, 2011
Apr 8, 2011
9
10
11
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
Apr 8, 2011
Apr 8, 2011
13
14
15
16
17
18
19
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
20
21
22
23
24
25
*/
#include "SDL_config.h"
#ifndef _SDL_cocoavideo_h
#define _SDL_cocoavideo_h
Nov 25, 2008
Nov 25, 2008
26
27
#include "SDL_opengl.h"
Jul 24, 2006
Jul 24, 2006
28
#include <ApplicationServices/ApplicationServices.h>
29
30
#include <Cocoa/Cocoa.h>
Feb 16, 2011
Feb 16, 2011
31
#include "SDL_keycode.h"
32
33
#include "../SDL_sysvideo.h"
Jul 8, 2010
Jul 8, 2010
34
#include "SDL_cocoaclipboard.h"
35
36
37
38
39
#include "SDL_cocoaevents.h"
#include "SDL_cocoakeyboard.h"
#include "SDL_cocoamodes.h"
#include "SDL_cocoamouse.h"
#include "SDL_cocoaopengl.h"
Jul 24, 2006
Jul 24, 2006
40
#include "SDL_cocoawindow.h"
Dec 1, 2010
Dec 1, 2010
42
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
Jan 18, 2010
Jan 18, 2010
43
44
45
46
47
48
49
50
51
#if __LP64__
typedef long NSInteger;
typedef unsigned long NSUInteger;
#else
typedef int NSInteger;
typedef unsigned int NSUInteger;
#endif
#endif
52
53
/* Private display data */
Sep 19, 2009
Sep 19, 2009
54
55
@class SDLTranslatorResponder;
56
57
typedef struct SDL_VideoData
{
Jul 30, 2006
Jul 30, 2006
58
59
SInt32 osversion;
unsigned int modifierFlags;
Feb 5, 2008
Feb 5, 2008
60
void *key_layout;
Sep 19, 2009
Sep 19, 2009
61
SDLTranslatorResponder *fieldEdit;
Jul 9, 2010
Jul 9, 2010
62
NSInteger clipboard_count;
Jan 12, 2009
Jan 12, 2009
63
Uint32 screensaver_activity;
64
65
} SDL_VideoData;
Feb 22, 2011
Feb 22, 2011
66
/* Utility functions */
Mar 1, 2011
Mar 1, 2011
67
extern NSImage * Cocoa_CreateImage(SDL_Surface * surface);
Feb 22, 2011
Feb 22, 2011
68
69
70
71
#endif /* _SDL_cocoavideo_h */
/* vi: set ts=4 sw=4 expandtab: */