1SDL_QuitEvent(3)               SDL API Reference              SDL_QuitEvent(3)
2
3
4

NAME

6       SDL_QuitEvent - Quit requested event
7

STRUCTURE DEFINITION

9       typedef struct{
10         Uint8 type
11       } SDL_QuitEvent;
12

STRUCTURE DATA

14       type                SDL_QUIT
15

DESCRIPTION

17       SDL_QuitEvent  is  a  member of the SDL_Event union and is used whan an
18       event of type SDL_QUIT is reported.
19
20       As can be seen, the SDL_QuitEvent structure serves no  useful  purpose.
21       The  event  itself, on the other hand, is very important. If you filter
22       out or ignore a quit event then it is impossible for the user to  close
23       the  window.  On the other hand, if you do accept a quit event then the
24       application window will be closed, and screen updates will still report
25       success event though the application will no longer be visible.
26
27              Note:
28
29              The macro SDL_QuitRequested will return non-zero if a quit event
30              is pending
31

SEE ALSO

33       SDL_Event, SDL_SetEventFilter
34
35
36
37SDL                         Tue 11 Sep 2001, 22:59            SDL_QuitEvent(3)
Impressum