Mercurial > sdl-ios-xcode
annotate docs/html/sdlresizeevent.html @ 320:66f815c147ed
Date: Thu, 28 Mar 2002 09:20:03 +0200
From: "Mike Gorchak" <mike@malva.ua>
Subject: New QNX patch.
Hi !
1. Removed warning (possible bug) with invalid type, passing to the function
in ph_WarpedMotion.
2. Rewritten handler of Ph_WM_RESIZE message, now works, but buggy (old
handler doesn't work at all).
3. Added stub handler for Ph_WM_MAX (maximize) message.
4. Added more #ifdef HAVE_OPENGL to disable OpenGL stuff when it not needed.
5. Added support for SDL_NOFRAME and SDL_RESIZABLE flags (in OpenGL windows
too).
6. Added cosmetic changes, if no SDL_RESIZABLE flag defined, disable resize
handlers in window border and maximize button at caption.
7. Fixed my bug with invalid arguments count passed to PtCreateWidget call.
8. Fixed some palette problems.
9. Updated README.QNX file.
And I changed testgl.c test application:
10. Added in testgl.c application support for SDL_NOFRAME flag and
option -noframe.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 28 Mar 2002 16:20:10 +0000 |
parents | e5bc29de3f0a |
children | 355632dca928 |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >SDL_ResizeEvent</TITLE | |
5 ><META | |
6 NAME="GENERATOR" | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
0 | 8 "><LINK |
9 REL="HOME" | |
10 TITLE="SDL Library Documentation" | |
11 HREF="index.html"><LINK | |
12 REL="UP" | |
13 TITLE="SDL Event Structures." | |
14 HREF="eventstructures.html"><LINK | |
15 REL="PREVIOUS" | |
16 TITLE="SDL_JoyBallEvent" | |
17 HREF="sdljoyballevent.html"><LINK | |
18 REL="NEXT" | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
19 TITLE="SDL_ExposeEvent" |
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
20 HREF="sdlexposeevent.html"></HEAD |
0 | 21 ><BODY |
22 CLASS="REFENTRY" | |
23 BGCOLOR="#FFF8DC" | |
24 TEXT="#000000" | |
25 LINK="#0000ee" | |
26 VLINK="#551a8b" | |
27 ALINK="#ff0000" | |
28 ><DIV | |
29 CLASS="NAVHEADER" | |
30 ><TABLE | |
31 WIDTH="100%" | |
32 BORDER="0" | |
33 CELLPADDING="0" | |
34 CELLSPACING="0" | |
35 ><TR | |
36 ><TH | |
37 COLSPAN="3" | |
38 ALIGN="center" | |
39 >SDL Library Documentation</TH | |
40 ></TR | |
41 ><TR | |
42 ><TD | |
43 WIDTH="10%" | |
44 ALIGN="left" | |
45 VALIGN="bottom" | |
46 ><A | |
47 HREF="sdljoyballevent.html" | |
48 >Prev</A | |
49 ></TD | |
50 ><TD | |
51 WIDTH="80%" | |
52 ALIGN="center" | |
53 VALIGN="bottom" | |
54 ></TD | |
55 ><TD | |
56 WIDTH="10%" | |
57 ALIGN="right" | |
58 VALIGN="bottom" | |
59 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
60 HREF="sdlexposeevent.html" |
0 | 61 >Next</A |
62 ></TD | |
63 ></TR | |
64 ></TABLE | |
65 ><HR | |
66 ALIGN="LEFT" | |
67 WIDTH="100%"></DIV | |
68 ><H1 | |
69 ><A | |
70 NAME="SDLRESIZEEVENT" | |
71 >SDL_ResizeEvent</A | |
72 ></H1 | |
73 ><DIV | |
74 CLASS="REFNAMEDIV" | |
75 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
76 NAME="AEN4069" |
0 | 77 ></A |
78 ><H2 | |
79 >Name</H2 | |
80 >SDL_ResizeEvent -- Window resize event structure</DIV | |
81 ><DIV | |
82 CLASS="REFSECT1" | |
83 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
84 NAME="AEN4072" |
0 | 85 ></A |
86 ><H2 | |
87 >Structure Definition</H2 | |
88 ><PRE | |
89 CLASS="PROGRAMLISTING" | |
90 >typedef struct{ | |
91 Uint8 type; | |
92 int w, h; | |
93 } SDL_ResizeEvent;</PRE | |
94 ></DIV | |
95 ><DIV | |
96 CLASS="REFSECT1" | |
97 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
98 NAME="AEN4075" |
0 | 99 ></A |
100 ><H2 | |
101 >Structure Data</H2 | |
102 ><DIV | |
103 CLASS="INFORMALTABLE" | |
104 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
105 NAME="AEN4077" |
0 | 106 ></A |
107 ><P | |
108 ></P | |
109 ><TABLE | |
110 BORDER="0" | |
111 CLASS="CALSTABLE" | |
112 ><TBODY | |
113 ><TR | |
114 ><TD | |
115 ALIGN="LEFT" | |
116 VALIGN="TOP" | |
117 ><TT | |
118 CLASS="STRUCTFIELD" | |
119 ><I | |
120 >type</I | |
121 ></TT | |
122 ></TD | |
123 ><TD | |
124 ALIGN="LEFT" | |
125 VALIGN="TOP" | |
126 ><TT | |
127 CLASS="LITERAL" | |
128 >SDL_VIDEORESIZE</TT | |
129 ></TD | |
130 ></TR | |
131 ><TR | |
132 ><TD | |
133 ALIGN="LEFT" | |
134 VALIGN="TOP" | |
135 ><TT | |
136 CLASS="STRUCTFIELD" | |
137 ><I | |
138 >w</I | |
139 ></TT | |
140 >, <TT | |
141 CLASS="STRUCTFIELD" | |
142 ><I | |
143 >h</I | |
144 ></TT | |
145 ></TD | |
146 ><TD | |
147 ALIGN="LEFT" | |
148 VALIGN="TOP" | |
149 >New width and height of the window</TD | |
150 ></TR | |
151 ></TBODY | |
152 ></TABLE | |
153 ><P | |
154 ></P | |
155 ></DIV | |
156 ></DIV | |
157 ><DIV | |
158 CLASS="REFSECT1" | |
159 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
160 NAME="AEN4090" |
0 | 161 ></A |
162 ><H2 | |
163 >Description</H2 | |
164 ><P | |
165 ><SPAN | |
166 CLASS="STRUCTNAME" | |
167 >SDL_ResizeEvent</SPAN | |
168 > is a member of the <A | |
169 HREF="sdlevent.html" | |
170 ><SPAN | |
171 CLASS="STRUCTNAME" | |
172 >SDL_Event</SPAN | |
173 ></A | |
174 > union and is used when an event of type <TT | |
175 CLASS="LITERAL" | |
176 >SDL_VIDEORESIZE</TT | |
177 > is reported.</P | |
178 ><P | |
179 >When <TT | |
180 CLASS="LITERAL" | |
181 >SDL_RESIZABLE</TT | |
182 > is passed as a <TT | |
183 CLASS="PARAMETER" | |
184 ><I | |
185 >flag</I | |
186 ></TT | |
187 > to <A | |
188 HREF="sdlsetvideomode.html" | |
189 ><TT | |
190 CLASS="FUNCTION" | |
191 >SDL_SetVideoMode</TT | |
192 ></A | |
193 > the user is allowed to resize the applications window. When the window is resized an <TT | |
194 CLASS="LITERAL" | |
195 >SDL_VIDEORESIZE</TT | |
196 > is report, with the new window width and height values stored in <TT | |
197 CLASS="STRUCTFIELD" | |
198 ><I | |
199 >w</I | |
200 ></TT | |
201 > and <TT | |
202 CLASS="STRUCTFIELD" | |
203 ><I | |
204 >h</I | |
205 ></TT | |
206 >, respectively. When an <TT | |
207 CLASS="LITERAL" | |
208 >SDL_VIDEORESIZE</TT | |
209 > is recieved the window should be resized to the new dimensions using <A | |
210 HREF="sdlsetvideomode.html" | |
211 ><TT | |
212 CLASS="FUNCTION" | |
213 >SDL_SetVideoMode</TT | |
214 ></A | |
215 >.</P | |
216 ></DIV | |
217 ><DIV | |
218 CLASS="REFSECT1" | |
219 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
220 NAME="AEN4108" |
0 | 221 ></A |
222 ><H2 | |
223 >See Also</H2 | |
224 ><P | |
225 ><A | |
226 HREF="sdlevent.html" | |
227 ><SPAN | |
228 CLASS="STRUCTNAME" | |
229 >SDL_Event</SPAN | |
230 ></A | |
231 >, | |
232 <A | |
233 HREF="sdlsetvideomode.html" | |
234 ><TT | |
235 CLASS="FUNCTION" | |
236 >SDL_SetVideoMode</TT | |
237 ></A | |
238 ></P | |
239 ></DIV | |
240 ><DIV | |
241 CLASS="NAVFOOTER" | |
242 ><HR | |
243 ALIGN="LEFT" | |
244 WIDTH="100%"><TABLE | |
245 WIDTH="100%" | |
246 BORDER="0" | |
247 CELLPADDING="0" | |
248 CELLSPACING="0" | |
249 ><TR | |
250 ><TD | |
251 WIDTH="33%" | |
252 ALIGN="left" | |
253 VALIGN="top" | |
254 ><A | |
255 HREF="sdljoyballevent.html" | |
256 >Prev</A | |
257 ></TD | |
258 ><TD | |
259 WIDTH="34%" | |
260 ALIGN="center" | |
261 VALIGN="top" | |
262 ><A | |
263 HREF="index.html" | |
264 >Home</A | |
265 ></TD | |
266 ><TD | |
267 WIDTH="33%" | |
268 ALIGN="right" | |
269 VALIGN="top" | |
270 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
271 HREF="sdlexposeevent.html" |
0 | 272 >Next</A |
273 ></TD | |
274 ></TR | |
275 ><TR | |
276 ><TD | |
277 WIDTH="33%" | |
278 ALIGN="left" | |
279 VALIGN="top" | |
280 >SDL_JoyBallEvent</TD | |
281 ><TD | |
282 WIDTH="34%" | |
283 ALIGN="center" | |
284 VALIGN="top" | |
285 ><A | |
286 HREF="eventstructures.html" | |
287 >Up</A | |
288 ></TD | |
289 ><TD | |
290 WIDTH="33%" | |
291 ALIGN="right" | |
292 VALIGN="top" | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
293 >SDL_ExposeEvent</TD |
0 | 294 ></TR |
295 ></TABLE | |
296 ></DIV | |
297 ></BODY | |
298 ></HTML | |
299 > |