Wiki Page Content

Differences between revisions 7 and 9 (spanning 2 versions)
Revision 7 as of 2011-05-01 04:40:10
Size: 1435
Editor: SheenaSmith
Comment: update content - event remarks re: union (for consistency); camelcase
Revision 9 as of 2013-08-08 20:52:13
Size: 713
Editor: RyanGordon
Comment: Rewritten
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 19: Line 18:
*<<BR>>[[SDL_QuitEvent]] is a member of the [[SDL_Event]] union and is used when an event of type SDL_QUIT is reported. ^You would access it through the event's `quit` field.^ [[SDL_QuitEvent]] is a member of the [[SDL_Event]] union and is used when an event of type SDL_QUIT is reported. You would access it through the event's `quit` field.
Line 21: Line 20:
,,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. <<BR>>* <<Color2(green,SDL_QuitRequested seems to be a define in quit.h. Don't see it as a macro.)>>
Please refer to [[SDL_EventType#SDL_QUIT|the discussion of SDL_QUIT]] for more details.
Line 25: Line 23:
 .[[SDL_EventMask]] ???
.[[SDL_EventType]] ???
 .[[SDL_EventType]]
Line 31: Line 28:
== Related Functions ==
 .[[SDL_SetEventFilter]] *

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. You would access it through the event's quit field.

Please refer to the discussion of SDL_QUIT for more details.


CategoryStruct, CategoryEvents

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