Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.h @ 5168:2b1989f59674
Extended SDL_SetWindowData() to allow arbitrary named values.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 03 Feb 2011 11:16:57 -0800 |
parents | fb424691cfc7 |
children | 4d39eeaad00b |
comparison
equal
deleted
inserted
replaced
5167:97423d858a1a | 5168:2b1989f59674 |
---|---|
56 { | 56 { |
57 SDL_WindowShaper *(*CreateShaper)(SDL_Window * window); | 57 SDL_WindowShaper *(*CreateShaper)(SDL_Window * window); |
58 int (*SetWindowShape)(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode); | 58 int (*SetWindowShape)(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode); |
59 int (*ResizeWindowShape)(SDL_Window *window); | 59 int (*ResizeWindowShape)(SDL_Window *window); |
60 }; | 60 }; |
61 | |
62 typedef struct SDL_WindowUserData | |
63 { | |
64 char *name; | |
65 void *data; | |
66 struct SDL_WindowUserData *next; | |
67 } SDL_WindowUserData; | |
61 | 68 |
62 /* Define the SDL window structure, corresponding to toplevel windows */ | 69 /* Define the SDL window structure, corresponding to toplevel windows */ |
63 struct SDL_Window | 70 struct SDL_Window |
64 { | 71 { |
65 const void *magic; | 72 const void *magic; |
73 | 80 |
74 SDL_DisplayMode fullscreen_mode; | 81 SDL_DisplayMode fullscreen_mode; |
75 | 82 |
76 SDL_WindowShaper *shaper; | 83 SDL_WindowShaper *shaper; |
77 | 84 |
78 void *userdata; | 85 SDL_WindowUserData *data; |
86 | |
79 void *driverdata; | 87 void *driverdata; |
80 | 88 |
81 SDL_Window *prev; | 89 SDL_Window *prev; |
82 SDL_Window *next; | 90 SDL_Window *next; |
83 }; | 91 }; |