|
Size: 1345
Comment: added header-specific Category link
|
Size: 1435
Comment: update content - event remarks re: union (for consistency); camelcase
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| #pragma disable-camelcase | #pragma camelcase off |
| 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. ^You would access it through the event's `quit` field.^ |
| Line 22: | Line 22: |
| 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.)>> | 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.)>> |
| Line 28: | Line 28: |
| == Related Structures == .[[SDL_Event]] |
|
| Line 32: | Line 35: |
| [[CategoryStruct]], [[CategoryEventsStruct]] | [[CategoryStruct]], [[CategoryEvents]] |
DRAFT |
SDL_QuitEvent
A structure that contains the "quit requested" event.
Contents
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.
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
Related Enumerations
SDL_EventMask ???
SDL_EventType ???
Related Structures
