Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.h @ 5251:58265e606e4e
Window coordinates are in the global space and windows are not tied to a particular display.
Also added Ctrl-Enter keybinding to the test code to toggle fullscreen mode for testing.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Feb 2011 14:44:25 -0800 |
parents | 762e40fb8e28 |
children | 7a963be087ef |
comparison
equal
deleted
inserted
replaced
5250:329d435f97f4 | 5251:58265e606e4e |
---|---|
74 char *title; | 74 char *title; |
75 int x, y; | 75 int x, y; |
76 int w, h; | 76 int w, h; |
77 Uint32 flags; | 77 Uint32 flags; |
78 | 78 |
79 SDL_VideoDisplay *display; | |
80 | |
81 SDL_DisplayMode fullscreen_mode; | 79 SDL_DisplayMode fullscreen_mode; |
82 | 80 |
83 SDL_Surface *surface; | 81 SDL_Surface *surface; |
84 SDL_bool surface_valid; | 82 SDL_bool surface_valid; |
85 | 83 |
108 SDL_DisplayMode *display_modes; | 106 SDL_DisplayMode *display_modes; |
109 SDL_DisplayMode desktop_mode; | 107 SDL_DisplayMode desktop_mode; |
110 SDL_DisplayMode current_mode; | 108 SDL_DisplayMode current_mode; |
111 SDL_bool updating_fullscreen; | 109 SDL_bool updating_fullscreen; |
112 | 110 |
113 SDL_Window *windows; | |
114 SDL_Window *fullscreen_window; | 111 SDL_Window *fullscreen_window; |
115 | 112 |
116 SDL_VideoDevice *device; | 113 SDL_VideoDevice *device; |
117 | 114 |
118 void *driverdata; | 115 void *driverdata; |
151 * Get the bounds of a display | 148 * Get the bounds of a display |
152 */ | 149 */ |
153 int (*GetDisplayBounds) (_THIS, SDL_VideoDisplay * display, SDL_Rect * rect); | 150 int (*GetDisplayBounds) (_THIS, SDL_VideoDisplay * display, SDL_Rect * rect); |
154 | 151 |
155 /* | 152 /* |
156 * Get a list of the available display modes. e.g. | 153 * Get a list of the available display modes for a display. |
157 * SDL_AddDisplayMode(_this->current_display, mode) | |
158 */ | 154 */ |
159 void (*GetDisplayModes) (_THIS, SDL_VideoDisplay * display); | 155 void (*GetDisplayModes) (_THIS, SDL_VideoDisplay * display); |
160 | 156 |
161 /* | 157 /* |
162 * Setting the display mode is independent of creating windows, so | 158 * Setting the display mode is independent of creating windows, so |
234 /* * * */ | 230 /* * * */ |
235 /* Data common to all drivers */ | 231 /* Data common to all drivers */ |
236 SDL_bool suspend_screensaver; | 232 SDL_bool suspend_screensaver; |
237 int num_displays; | 233 int num_displays; |
238 SDL_VideoDisplay *displays; | 234 SDL_VideoDisplay *displays; |
239 int current_display; | 235 SDL_Window *windows; |
240 Uint8 window_magic; | 236 Uint8 window_magic; |
241 Uint32 next_object_id; | 237 Uint32 next_object_id; |
242 char * clipboard_text; | 238 char * clipboard_text; |
243 | 239 |
244 /* * * */ | 240 /* * * */ |
324 | 320 |
325 extern SDL_VideoDevice *SDL_GetVideoDevice(void); | 321 extern SDL_VideoDevice *SDL_GetVideoDevice(void); |
326 extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode); | 322 extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode); |
327 extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display); | 323 extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display); |
328 extern SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode * mode); | 324 extern SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode * mode); |
325 extern SDL_VideoDisplay *SDL_GetDisplayForWindow(SDL_Window *window); | |
329 | 326 |
330 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags); | 327 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags); |
331 | 328 |
332 extern void SDL_OnWindowShown(SDL_Window * window); | 329 extern void SDL_OnWindowShown(SDL_Window * window); |
333 extern void SDL_OnWindowHidden(SDL_Window * window); | 330 extern void SDL_OnWindowHidden(SDL_Window * window); |