Mercurial > sdl-ios-xcode
comparison src/video/Xext/extensions/xf86dga.h @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
85 int maxViewportX; /* max viewport origin */ | 85 int maxViewportX; /* max viewport origin */ |
86 int maxViewportY; | 86 int maxViewportY; |
87 int viewportFlags; /* types of page flipping possible */ | 87 int viewportFlags; /* types of page flipping possible */ |
88 int reserved1; | 88 int reserved1; |
89 int reserved2; | 89 int reserved2; |
90 } SDL_NAME (XDGAMode); | 90 } SDL_NAME(XDGAMode); |
91 | 91 |
92 | 92 |
93 typedef struct | 93 typedef struct |
94 { | 94 { |
95 SDL_NAME (XDGAMode) mode; | 95 SDL_NAME(XDGAMode) mode; |
96 unsigned char *data; | 96 unsigned char *data; |
97 Pixmap pixmap; | 97 Pixmap pixmap; |
98 } SDL_NAME (XDGADevice); | 98 } SDL_NAME(XDGADevice); |
99 | 99 |
100 | 100 |
101 #ifndef _XF86DGA_SERVER_ | 101 #ifndef _XF86DGA_SERVER_ |
102 _XFUNCPROTOBEGIN typedef struct | 102 _XFUNCPROTOBEGIN typedef struct |
103 { | 103 { |
106 Display *display; | 106 Display *display; |
107 int screen; | 107 int screen; |
108 Time time; | 108 Time time; |
109 unsigned int state; | 109 unsigned int state; |
110 unsigned int button; | 110 unsigned int button; |
111 } SDL_NAME (XDGAButtonEvent); | 111 } SDL_NAME(XDGAButtonEvent); |
112 | 112 |
113 typedef struct | 113 typedef struct |
114 { | 114 { |
115 int type; | 115 int type; |
116 unsigned long serial; | 116 unsigned long serial; |
117 Display *display; | 117 Display *display; |
118 int screen; | 118 int screen; |
119 Time time; | 119 Time time; |
120 unsigned int state; | 120 unsigned int state; |
121 unsigned int keycode; | 121 unsigned int keycode; |
122 } SDL_NAME (XDGAKeyEvent); | 122 } SDL_NAME(XDGAKeyEvent); |
123 | 123 |
124 typedef struct | 124 typedef struct |
125 { | 125 { |
126 int type; | 126 int type; |
127 unsigned long serial; | 127 unsigned long serial; |
129 int screen; | 129 int screen; |
130 Time time; | 130 Time time; |
131 unsigned int state; | 131 unsigned int state; |
132 int dx; | 132 int dx; |
133 int dy; | 133 int dy; |
134 } SDL_NAME (XDGAMotionEvent); | 134 } SDL_NAME(XDGAMotionEvent); |
135 | 135 |
136 typedef union | 136 typedef union |
137 { | 137 { |
138 int type; | 138 int type; |
139 SDL_NAME (XDGAButtonEvent) xbutton; | 139 SDL_NAME(XDGAButtonEvent) xbutton; |
140 SDL_NAME (XDGAKeyEvent) xkey; | 140 SDL_NAME(XDGAKeyEvent) xkey; |
141 SDL_NAME (XDGAMotionEvent) xmotion; | 141 SDL_NAME(XDGAMotionEvent) xmotion; |
142 long pad[24]; | 142 long pad[24]; |
143 } SDL_NAME (XDGAEvent); | 143 } SDL_NAME(XDGAEvent); |
144 | 144 |
145 Bool SDL_NAME (XDGAQueryExtension) (Display * dpy, | 145 Bool SDL_NAME(XDGAQueryExtension) (Display * dpy, |
146 int *eventBase, int *erroBase); | 146 int *eventBase, int *erroBase); |
147 | 147 |
148 Bool SDL_NAME (XDGAQueryVersion) (Display * dpy, | 148 Bool SDL_NAME(XDGAQueryVersion) (Display * dpy, |
149 int *majorVersion, int *minorVersion); | 149 int *majorVersion, int *minorVersion); |
150 | 150 |
151 SDL_NAME (XDGAMode) * SDL_NAME (XDGAQueryModes) (Display * dpy, | 151 SDL_NAME(XDGAMode) * SDL_NAME(XDGAQueryModes) (Display * dpy, |
152 int screen, int *num); | 152 int screen, int *num); |
153 | 153 |
154 SDL_NAME (XDGADevice) * SDL_NAME (XDGASetMode) (Display * dpy, | 154 SDL_NAME(XDGADevice) * SDL_NAME(XDGASetMode) (Display * dpy, |
155 int screen, int mode); | 155 int screen, int mode); |
156 | 156 |
157 Bool | 157 Bool |
158 SDL_NAME (XDGAOpenFramebuffer) (Display * dpy, int screen); | 158 SDL_NAME(XDGAOpenFramebuffer) (Display * dpy, int screen); |
159 | 159 |
160 void SDL_NAME (XDGACloseFramebuffer) (Display * dpy, int screen); | 160 void SDL_NAME(XDGACloseFramebuffer) (Display * dpy, int screen); |
161 | 161 |
162 void SDL_NAME (XDGASetViewport) (Display * dpy, | 162 void SDL_NAME(XDGASetViewport) (Display * dpy, |
163 int screen, int x, int y, int flags); | 163 int screen, int x, int y, int flags); |
164 | 164 |
165 void SDL_NAME (XDGAInstallColormap) (Display * dpy, | 165 void SDL_NAME(XDGAInstallColormap) (Display * dpy, |
166 int screen, Colormap cmap); | 166 int screen, Colormap cmap); |
167 | 167 |
168 Colormap | 168 Colormap |
169 SDL_NAME (XDGACreateColormap) (Display * dpy, | 169 SDL_NAME(XDGACreateColormap) (Display * dpy, |
170 int screen, | 170 int screen, |
171 SDL_NAME (XDGADevice) * device, int alloc); | 171 SDL_NAME(XDGADevice) * device, int alloc); |
172 | 172 |
173 void SDL_NAME (XDGASelectInput) (Display * dpy, int screen, | 173 void SDL_NAME(XDGASelectInput) (Display * dpy, int screen, |
174 long event_mask); | 174 long event_mask); |
175 | 175 |
176 void SDL_NAME (XDGAFillRectangle) (Display * dpy, | 176 void SDL_NAME(XDGAFillRectangle) (Display * dpy, |
177 int screen, | 177 int screen, |
178 int x, | 178 int x, |
179 int y, | 179 int y, |
180 unsigned int width, | 180 unsigned int width, |
181 unsigned int height, | 181 unsigned int height, |
182 unsigned long color); | 182 unsigned long color); |
183 | 183 |
184 | 184 |
185 void SDL_NAME (XDGACopyArea) (Display * dpy, | 185 void SDL_NAME(XDGACopyArea) (Display * dpy, |
186 int screen, | 186 int screen, |
187 int srcx, | 187 int srcx, |
188 int srcy, | 188 int srcy, |
189 unsigned int width, | 189 unsigned int width, |
190 unsigned int height, int dstx, int dsty); | 190 unsigned int height, int dstx, int dsty); |
191 | 191 |
192 | 192 |
193 void SDL_NAME (XDGACopyTransparentArea) (Display * dpy, | 193 void SDL_NAME(XDGACopyTransparentArea) (Display * dpy, |
194 int screen, | 194 int screen, |
195 int srcx, | 195 int srcx, |
196 int srcy, | 196 int srcy, |
197 unsigned int width, | 197 unsigned int width, |
198 unsigned int height, | 198 unsigned int height, |
199 int dstx, | 199 int dstx, |
200 int dsty, unsigned long key); | 200 int dsty, unsigned long key); |
201 | 201 |
202 int SDL_NAME (XDGAGetViewportStatus) (Display * dpy, int screen); | 202 int SDL_NAME(XDGAGetViewportStatus) (Display * dpy, int screen); |
203 | 203 |
204 void SDL_NAME (XDGASync) (Display * dpy, int screen); | 204 void SDL_NAME(XDGASync) (Display * dpy, int screen); |
205 | 205 |
206 Bool | 206 Bool |
207 SDL_NAME (XDGASetClientVersion) (Display * dpy); | 207 SDL_NAME(XDGASetClientVersion) (Display * dpy); |
208 | 208 |
209 void SDL_NAME (XDGAChangePixmapMode) (Display * dpy, | 209 void SDL_NAME(XDGAChangePixmapMode) (Display * dpy, |
210 int screen, int *x, int *y, | 210 int screen, int *x, int *y, |
211 int mode); | 211 int mode); |
212 | 212 |
213 | 213 |
214 void SDL_NAME (XDGAKeyEventToXKeyEvent) (SDL_NAME (XDGAKeyEvent) * dk, | 214 void SDL_NAME(XDGAKeyEventToXKeyEvent) (SDL_NAME(XDGAKeyEvent) * dk, |
215 XKeyEvent * xk); | 215 XKeyEvent * xk); |
216 | 216 |
217 | 217 |
218 _XFUNCPROTOEND | 218 _XFUNCPROTOEND |
219 #endif /* _XF86DGA_SERVER_ */ | 219 #endif /* _XF86DGA_SERVER_ */ |
220 #endif /* _XF86DGA_H_ */ | 220 #endif /* _XF86DGA_H_ */ |