src/video/cocoa/SDL_cocoavideo.h
author Ryan C. Gordon
Mon, 23 Jan 2017 12:06:10 -0500
changeset 10837 c2f241c2f6ad
parent 10737 3406a0f8b041
child 11144 cccd37a9c28b
permissions -rw-r--r--
audio: Fix same bug as last commit, but for _mm_bslli_si128 vs _mm_slli_si128.
slouken@1931
     1
/*
slouken@5535
     2
  Simple DirectMedia Layer
slouken@10737
     3
  Copyright (C) 1997-2017 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>
icculus@9364
    29
#include <IOKit/pwr_mgt/IOPMLib.h>
slouken@1931
    30
#include <Cocoa/Cocoa.h>
slouken@1931
    31
slouken@5326
    32
#include "SDL_keycode.h"
slouken@1931
    33
#include "../SDL_sysvideo.h"
slouken@1931
    34
slouken@4499
    35
#include "SDL_cocoaclipboard.h"
slouken@1931
    36
#include "SDL_cocoaevents.h"
slouken@1931
    37
#include "SDL_cocoakeyboard.h"
slouken@1931
    38
#include "SDL_cocoamodes.h"
slouken@1931
    39
#include "SDL_cocoamouse.h"
slouken@1931
    40
#include "SDL_cocoaopengl.h"
slouken@1931
    41
#include "SDL_cocoawindow.h"
slouken@1931
    42
slouken@1931
    43
/* Private display data */
slouken@1931
    44
slouken@3280
    45
@class SDLTranslatorResponder;
slouken@3280
    46
slouken@1931
    47
typedef struct SDL_VideoData
slouken@1931
    48
{
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@10669
    55
    BOOL screensaver_use_iopm;
icculus@9364
    56
    IOPMAssertionID screensaver_assertion;
icculus@9364
    57
slouken@1931
    58
} SDL_VideoData;
slouken@1931
    59
slouken@5375
    60
/* Utility functions */
slouken@5417
    61
extern NSImage * Cocoa_CreateImage(SDL_Surface * surface);
slouken@5375
    62
slouken@1931
    63
#endif /* _SDL_cocoavideo_h */
slouken@1931
    64
slouken@1931
    65
/* vi: set ts=4 sw=4 expandtab: */