src/video/x11/SDL_x11video.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 11 Jul 2007 14:49:44 +0000
changeset 2171 4bd2dc41fc15
parent 1952 420716272158
child 2295 dbc6d1893869
permissions -rw-r--r--
Fixed compiling the x11 driver
     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 
    33 #if SDL_VIDEO_DRIVER_X11_XINERAMA
    34 #include "../Xext/extensions/Xinerama.h"
    35 #endif
    36 #if SDL_VIDEO_DRIVER_X11_XRANDR
    37 #include <X11/extensions/Xrandr.h>
    38 #endif
    39 #if SDL_VIDEO_DRIVER_X11_VIDMODE
    40 #include "../Xext/extensions/xf86vmode.h"
    41 #endif
    42 #if SDL_VIDEO_DRIVER_X11_XME
    43 #include "../Xext/extensions/xme.h"
    44 #endif
    45 #if SDL_VIDEO_DRIVER_X11_DPMS
    46 #include <X11/extensions/dpms.h>
    47 #endif
    48 
    49 #include "SDL_x11dyn.h"
    50 
    51 #include "SDL_x11events.h"
    52 #include "SDL_x11gamma.h"
    53 #include "SDL_x11keyboard.h"
    54 #include "SDL_x11modes.h"
    55 #include "SDL_x11mouse.h"
    56 #include "SDL_x11opengl.h"
    57 #include "SDL_x11window.h"
    58 
    59 /* Private display data */
    60 
    61 typedef struct SDL_VideoData
    62 {
    63     Display *display;
    64     char *classname;
    65     XIM im;
    66     int screensaver_timeout;
    67     BOOL dpms_enabled;
    68     int numwindows;
    69     SDL_WindowData **windowlist;
    70     int mouse;
    71     int keyboard;
    72     Atom WM_DELETE_WINDOW;
    73 } SDL_VideoData;
    74 
    75 #endif /* _SDL_x11video_h */
    76 
    77 /* vi: set ts=4 sw=4 expandtab: */