src/video/x11/SDL_x11video.h
author Sam Lantinga
Mon, 01 Sep 2008 16:04:20 +0000
changeset 2738 79c1bd651f04
parent 2710 44e49d3fa6cf
child 2763 6fc50bdd88c0
permissions -rw-r--r--
Fixed a bunch of compile warnings on Mac OS X
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2006 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 #include "SDL_config.h"
    23 
    24 #ifndef _SDL_x11video_h
    25 #define _SDL_x11video_h
    26 
    27 #include "../SDL_sysvideo.h"
    28 
    29 #include <X11/Xlib.h>
    30 #include <X11/Xutil.h>
    31 #include <X11/Xatom.h>
    32 #include <X11/extensions/XInput.h>
    33 
    34 #if SDL_VIDEO_DRIVER_X11_XINERAMA
    35 #include "../Xext/extensions/Xinerama.h"
    36 #endif
    37 #if SDL_VIDEO_DRIVER_X11_XRANDR
    38 #include <X11/extensions/Xrandr.h>
    39 #endif
    40 #if SDL_VIDEO_DRIVER_X11_VIDMODE
    41 #include "../Xext/extensions/xf86vmode.h"
    42 #endif
    43 #if SDL_VIDEO_DRIVER_X11_XME
    44 #include "../Xext/extensions/xme.h"
    45 #endif
    46 #if SDL_VIDEO_DRIVER_X11_DPMS
    47 #include <X11/extensions/dpms.h>
    48 #endif
    49 
    50 #include "SDL_x11dyn.h"
    51 
    52 #include "SDL_x11events.h"
    53 #include "SDL_x11gamma.h"
    54 #include "SDL_x11keyboard.h"
    55 #include "SDL_x11modes.h"
    56 #include "SDL_x11mouse.h"
    57 #include "SDL_x11opengl.h"
    58 #include "SDL_x11window.h"
    59 
    60 /* Private display data */
    61 
    62 typedef struct SDL_VideoData
    63 {
    64     Display *display;
    65     char *classname;
    66     XIM im;
    67     int screensaver_timeout;
    68     BOOL dpms_enabled;
    69     int numwindows;
    70     SDL_WindowData **windowlist;
    71     int windowlistlength;
    72     int mouse;
    73     int keyboard;
    74     Atom WM_DELETE_WINDOW;
    75     SDL_scancode key_layout[256];
    76 } SDL_VideoData;
    77 
    78 #endif /* _SDL_x11video_h */
    79 
    80 /* vi: set ts=4 sw=4 expandtab: */