Wiki Page Content

Differences between revisions 8 and 10 (spanning 2 versions)
Revision 8 as of 2011-09-09 17:15:55
Size: 1346
Editor: SheenaSmith
Comment: minor change
Revision 10 as of 2013-09-05 20:30:25
Size: 766
Comment: Updated structure.
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 12: Line 11:
||Uint32||'''timestamp'''||timestamp of the event||
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. ^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 21:
,,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>>*
Please refer to [[SDL_EventType#SDL_QUIT|the discussion of SDL_QUIT]] for more details.
Line 25: Line 24:
 .[[SDL_EventMask]] ???
.[[SDL_EventType]] ???
 .[[SDL_EventType]]
Line 31: Line 29:
== Related Functions ==
 .[[SDL_SetEventFilter]] *

SDL_QuitEvent

A structure that contains the "quit requested" event.

Data Fields

Uint32

type

SDL_QUIT

Uint32

timestamp

timestamp of the event

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