Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5131 clevermous 1
2
>
3
>
4
>SDL_QuitEvent
5
>
6
NAME="GENERATOR"
7
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
8
">
9
REL="HOME"
10
TITLE="SDL Library Documentation"
11
HREF="index.html">
12
REL="UP"
13
TITLE="SDL Event Structures."
14
HREF="eventstructures.html">
15
REL="PREVIOUS"
16
TITLE="SDL_UserEvent"
17
HREF="sdluserevent.html">
18
REL="NEXT"
19
TITLE="SDL_keysym"
20
HREF="sdlkeysym.html">
21
>
22
CLASS="REFENTRY"
23
BGCOLOR="#FFF8DC"
24
TEXT="#000000"
25
LINK="#0000ee"
26
VLINK="#551a8b"
27
ALINK="#ff0000"
28
>
29
CLASS="NAVHEADER"
30
>
31
WIDTH="100%"
32
BORDER="0"
33
CELLPADDING="0"
34
CELLSPACING="0"
35
>
36
>
37
COLSPAN="3"
38
ALIGN="center"
39
>SDL Library Documentation
40
>
41
>
42
>
43
WIDTH="10%"
44
ALIGN="left"
45
VALIGN="bottom"
46
>
47
HREF="sdluserevent.html"
48
>Prev
49
>
50
>
51
WIDTH="80%"
52
ALIGN="center"
53
VALIGN="bottom"
54
>
55
>
56
WIDTH="10%"
57
ALIGN="right"
58
VALIGN="bottom"
59
>
60
HREF="sdlkeysym.html"
61
>Next
62
>
63
>
64
>
65
>
66
ALIGN="LEFT"
67
WIDTH="100%">
68
>
69
>
70
NAME="SDLQUITEVENT"
71
>SDL_QuitEvent
72
>
73
>
74
CLASS="REFNAMEDIV"
75
>
76
NAME="AEN4153"
77
>
78
>
79
>Name
80
>SDL_QuitEvent -- Quit requested event
81
>
82
CLASS="REFSECT1"
83
>
84
NAME="AEN4156"
85
>
86
>
87
>Structure Definition
88
>
89
CLASS="PROGRAMLISTING"
90
>typedef struct{
91
  Uint8 type
92
} SDL_QuitEvent;
93
>
94
>
95
CLASS="REFSECT1"
96
>
97
NAME="AEN4159"
98
>
99
>
100
>Structure Data
101
>
102
CLASS="INFORMALTABLE"
103
>
104
NAME="AEN4161"
105
>
106
>
107
>
108
>
109
BORDER="0"
110
CLASS="CALSTABLE"
111
>
112
>
113
>
114
ALIGN="LEFT"
115
VALIGN="TOP"
116
>
117
CLASS="STRUCTFIELD"
118
>
119
>type
120
>
121
>
122
>
123
ALIGN="LEFT"
124
VALIGN="TOP"
125
>
126
CLASS="LITERAL"
127
>SDL_QUIT
128
>
129
>
130
>
131
>
132
>
133
>
134
>
135
>
136
>
137
CLASS="REFSECT1"
138
>
139
NAME="AEN4169"
140
>
141
>
142
>Description
143
>
144
>
145
CLASS="STRUCTNAME"
146
>SDL_QuitEvent
147
> is a member of the 
148
HREF="sdlevent.html"
149
>
150
CLASS="STRUCTNAME"
151
>SDL_Event
152
>
153
> union and is used whan an event of type 
154
CLASS="LITERAL"
155
>SDL_QUIT
156
> is reported.
157
>
158
>As can be seen, the SDL_QuitEvent structure serves no useful purpose. The event itself, on the other hand, is very important. If you filter out or ignore a quit event then it is impossible for the user to close the window. On the other hand, if you do accept a quit event then the application window will be closed, and screen updates will still report success event though the application will no longer be visible.
159
>
160
CLASS="NOTE"
161
>
162
CLASS="NOTE"
163
>
164
>
165
>Note: 
166
>The macro 
167
CLASS="FUNCTION"
168
>SDL_QuitRequested
169
> will return non-zero if a quit event is pending
170
>
171
>
172
>
173
>
174
CLASS="REFSECT1"
175
>
176
NAME="AEN4180"
177
>
178
>
179
>See Also
180
>
181
>
182
HREF="sdlevent.html"
183
>
184
CLASS="STRUCTNAME"
185
>SDL_Event
186
>
187
>,
188
189
HREF="sdlseteventfilter.html"
190
>
191
CLASS="FUNCTION"
192
>SDL_SetEventFilter
193
>
194
>
195
>
196
>
197
CLASS="NAVFOOTER"
198
>
199
ALIGN="LEFT"
200
WIDTH="100%">
201
WIDTH="100%"
202
BORDER="0"
203
CELLPADDING="0"
204
CELLSPACING="0"
205
>
206
>
207
WIDTH="33%"
208
ALIGN="left"
209
VALIGN="top"
210
>
211
HREF="sdluserevent.html"
212
>Prev
213
>
214
>
215
WIDTH="34%"
216
ALIGN="center"
217
VALIGN="top"
218
>
219
HREF="index.html"
220
>Home
221
>
222
>
223
WIDTH="33%"
224
ALIGN="right"
225
VALIGN="top"
226
>
227
HREF="sdlkeysym.html"
228
>Next
229
>
230
>
231
>
232
>
233
WIDTH="33%"
234
ALIGN="left"
235
VALIGN="top"
236
>SDL_UserEvent
237
>
238
WIDTH="34%"
239
ALIGN="center"
240
VALIGN="top"
241
>
242
HREF="eventstructures.html"
243
>Up
244
>
245
>
246
WIDTH="33%"
247
ALIGN="right"
248
VALIGN="top"
249
>SDL_keysym
250
>
251
>
252
>
253
>
254
>
255
>