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

Latest commit

 

History

History
101 lines (83 loc) · 2.65 KB

SDL_x11video.h

File metadata and controls

101 lines (83 loc) · 2.65 KB
 
Jul 26, 2006
Jul 26, 2006
1
/*
Apr 8, 2011
Apr 8, 2011
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Simple DirectMedia Layer
Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
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.
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:
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.
Jul 26, 2006
Jul 26, 2006
20
21
22
23
24
25
*/
#include "SDL_config.h"
#ifndef _SDL_x11video_h
#define _SDL_x11video_h
Feb 16, 2011
Feb 16, 2011
26
#include "SDL_keycode.h"
Feb 2, 2011
Feb 2, 2011
27
Jul 26, 2006
Jul 26, 2006
28
29
30
31
32
33
#include "../SDL_sysvideo.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
Mar 11, 2011
Mar 11, 2011
34
35
36
#if SDL_VIDEO_DRIVER_X11_XCURSOR
#include <X11/Xcursor/Xcursor.h>
#endif
Jul 26, 2006
Jul 26, 2006
37
#if SDL_VIDEO_DRIVER_X11_XINERAMA
Feb 28, 2011
Feb 28, 2011
38
#include <X11/extensions/Xinerama.h>
Jul 26, 2006
Jul 26, 2006
39
#endif
Sep 17, 2008
Sep 17, 2008
40
41
42
#if SDL_VIDEO_DRIVER_X11_XINPUT
#include <X11/extensions/XInput.h>
#endif
Feb 28, 2011
Feb 28, 2011
43
44
45
46
#if SDL_VIDEO_DRIVER_X11_XRANDR
#include <X11/extensions/Xrandr.h>
#endif
#if SDL_VIDEO_DRIVER_X11_XSCRNSAVER
Jan 12, 2009
Jan 12, 2009
47
48
#include <X11/extensions/scrnsaver.h>
#endif
Jul 13, 2010
Jul 13, 2010
49
50
51
#if SDL_VIDEO_DRIVER_X11_XSHAPE
#include <X11/extensions/shape.h>
#endif
Feb 28, 2011
Feb 28, 2011
52
53
54
#if SDL_VIDEO_DRIVER_X11_XVIDMODE
#include <X11/extensions/xf86vmode.h>
#endif
Jul 26, 2006
Jul 26, 2006
55
56
57
#include "SDL_x11dyn.h"
Jul 12, 2010
Jul 12, 2010
58
#include "SDL_x11clipboard.h"
Jul 27, 2006
Jul 27, 2006
59
60
61
62
#include "SDL_x11events.h"
#include "SDL_x11keyboard.h"
#include "SDL_x11modes.h"
#include "SDL_x11mouse.h"
Jul 28, 2006
Jul 28, 2006
63
#include "SDL_x11opengl.h"
Jul 27, 2006
Jul 27, 2006
64
65
#include "SDL_x11window.h"
Jul 26, 2006
Jul 26, 2006
66
67
68
69
70
/* Private display data */
typedef struct SDL_VideoData
{
Display *display;
Jul 27, 2006
Jul 27, 2006
71
72
char *classname;
XIM im;
Jan 12, 2009
Jan 12, 2009
73
Uint32 screensaver_activity;
Jul 27, 2006
Jul 27, 2006
74
75
int numwindows;
SDL_WindowData **windowlist;
Mar 7, 2008
Mar 7, 2008
76
int windowlistlength;
Jul 14, 2010
Jul 14, 2010
77
78
79
80
81
/* This is true for ICCCM2.0-compliant window managers */
SDL_bool net_wm;
/* Useful atoms */
Jul 27, 2006
Jul 27, 2006
82
Atom WM_DELETE_WINDOW;
Jul 14, 2010
Jul 14, 2010
83
84
85
86
87
88
89
90
91
92
Atom _NET_WM_STATE;
Atom _NET_WM_STATE_HIDDEN;
Atom _NET_WM_STATE_MAXIMIZED_VERT;
Atom _NET_WM_STATE_MAXIMIZED_HORZ;
Atom _NET_WM_STATE_FULLSCREEN;
Atom _NET_WM_NAME;
Atom _NET_WM_ICON_NAME;
Atom _NET_WM_ICON;
Atom UTF8_STRING;
Feb 7, 2011
Feb 7, 2011
93
SDL_Scancode key_layout[256];
Jul 12, 2010
Jul 12, 2010
94
SDL_bool selection_waiting;
Jul 26, 2006
Jul 26, 2006
95
96
} SDL_VideoData;
Mar 11, 2011
Mar 11, 2011
97
98
extern SDL_bool X11_UseDirectColorVisuals(void);
Jul 26, 2006
Jul 26, 2006
99
100
101
#endif /* _SDL_x11video_h */
/* vi: set ts=4 sw=4 expandtab: */