SDL_QuitEvent

Name

SDL_QuitEvent -- Quit requested event

Structure Definition

typedef struct{
  Uint8 type
} SDL_QuitEvent;

Structure Data

type

SDL_QUIT

Description

SDL_QuitEvent is a member of the SDL_Event union and is used when an event of type SDL_QUIT is reported.

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 even though the application will no longer be visible.

See Also

SDL_Event, SDL_SetEventFilter

SDL_QuitEvent (last edited 2008-04-17 08:18:14 by localhost)