src/video/cocoa/SDL_cocoavideo.h
author Ryan C. Gordon <icculus@icculus.org>
Mon, 03 Mar 2014 21:25:16 -0500
changeset 8295 56f7e38ff0bc
parent 8149 681eb46b8ac4
child 8986 1c81316ac642
permissions -rw-r--r--
Mac: Added a hint to opt-out of new Spaces code.
slouken@1931
     1
/*
slouken@5535
     2
  Simple DirectMedia Layer
slouken@8149
     3
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
slouken@1931
     4
slouken@5535
     5
  This software is provided 'as-is', without any express or implied
slouken@5535
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@5535
     7
  arising from the use of this software.
slouken@1931
     8
slouken@5535
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@5535
    10
  including commercial applications, and to alter it and redistribute it
slouken@5535
    11
  freely, subject to the following restrictions:
slouken@1931
    12
slouken@5535
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@5535
    14
     claim that you wrote the original software. If you use this software
slouken@5535
    15
     in a product, an acknowledgment in the product documentation would be
slouken@5535
    16
     appreciated but is not required.
slouken@5535
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@5535
    18
     misrepresented as being the original software.
slouken@5535
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@1931
    20
*/
icculus@8093
    21
#include "../../SDL_internal.h"
slouken@1931
    22
slouken@1931
    23
#ifndef _SDL_cocoavideo_h
slouken@1931
    24
#define _SDL_cocoavideo_h
slouken@1931
    25
slouken@2788
    26
#include "SDL_opengl.h"
slouken@2788
    27
slouken@1934
    28
#include <ApplicationServices/ApplicationServices.h>
slouken@1931
    29
#include <Cocoa/Cocoa.h>
slouken@1931
    30
slouken@5326
    31
#include "SDL_keycode.h"
slouken@1931
    32
#include "../SDL_sysvideo.h"
slouken@1931
    33
slouken@4499
    34
#include "SDL_cocoaclipboard.h"
slouken@1931
    35
#include "SDL_cocoaevents.h"
slouken@1931
    36
#include "SDL_cocoakeyboard.h"
slouken@1931
    37
#include "SDL_cocoamodes.h"
slouken@1931
    38
#include "SDL_cocoamouse.h"
slouken@1931
    39
#include "SDL_cocoaopengl.h"
slouken@1931
    40
#include "SDL_cocoawindow.h"
slouken@1931
    41
slouken@1931
    42
/* Private display data */
slouken@1931
    43
slouken@3280
    44
@class SDLTranslatorResponder;
slouken@3280
    45
slouken@1931
    46
typedef struct SDL_VideoData
slouken@1931
    47
{
slouken@1959
    48
    SInt32 osversion;
icculus@8295
    49
    int allow_spaces;
slouken@1959
    50
    unsigned int modifierFlags;
slouken@2303
    51
    void *key_layout;
slouken@3280
    52
    SDLTranslatorResponder *fieldEdit;
slouken@4503
    53
    NSInteger clipboard_count;
slouken@3025
    54
    Uint32 screensaver_activity;
slouken@1931
    55
} SDL_VideoData;
slouken@1931
    56
slouken@5375
    57
/* Utility functions */
slouken@5417
    58
extern NSImage * Cocoa_CreateImage(SDL_Surface * surface);
slouken@5375
    59
slouken@1931
    60
#endif /* _SDL_cocoavideo_h */
slouken@1931
    61
slouken@1931
    62
/* vi: set ts=4 sw=4 expandtab: */