Wiki Page Content

Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2010-07-29 20:57:47
Size: 1324
Editor: SheenaSmith
Comment: update content (old wiki)
Revision 5 as of 2010-08-23 22:15:00
Size: 1345
Editor: SheenaSmith
Comment: added header-specific Category link
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
*<<BR>>[[SDL_QuitEvent]] is a member of the [[SDL_Event]]()??? union and is used when an event of type SDL_QUIT is reported. *<<BR>>[[SDL_QuitEvent]] is a member of the [[SDL_Event]] union and is used when an event of type SDL_QUIT is reported.
Line 32: Line 32:
[[CategoryStruct]] [[CategoryStruct]], [[CategoryEventsStruct]]

DRAFT

SDL_QuitEvent

A structure that contains the "quit requested" event.

Data Fields

Uint32

type

SDL_QUIT

Code Examples

You can add your code example here

Remarks

*
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 itself. The event itself it describes/defines/contains???, 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.

  • Note: The macro SDL_QuitRequested will return non-zero if a quit event is pending.
    * green


CategoryStruct, CategoryEventsStruct

None: SDL_QuitEvent (last edited 2014-10-23 15:55:21 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit