Mercurial > sdl-ios-xcode
comparison src/video/uikit/SDL_uikitwindow.h @ 5056:8b7988f42fcb
Added the ability to get the UIKit window through the SDL API.
You can also do this through the native API:
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
Also needed to name the union for events and window info.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 20 Jan 2011 16:05:59 -0800 |
parents | 8b03a20b320f |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
5055:2936fc46b015 | 5056:8b7988f42fcb |
---|---|
29 | 29 |
30 typedef struct SDL_WindowData SDL_WindowData; | 30 typedef struct SDL_WindowData SDL_WindowData; |
31 | 31 |
32 extern int UIKit_CreateWindow(_THIS, SDL_Window * window); | 32 extern int UIKit_CreateWindow(_THIS, SDL_Window * window); |
33 extern void UIKit_DestroyWindow(_THIS, SDL_Window * window); | 33 extern void UIKit_DestroyWindow(_THIS, SDL_Window * window); |
34 extern SDL_bool UIKit_GetWindowWMInfo(_THIS, SDL_Window * window, | |
35 struct SDL_SysWMinfo * info); | |
34 | 36 |
35 @class UIWindow; | 37 @class UIWindow; |
36 | 38 |
37 struct SDL_WindowData | 39 struct SDL_WindowData |
38 { | 40 { |