|
Size: 1344
Comment: minor change
|
Size: 1498
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 6: | Line 6: |
| A structure that contains a video driver dependent system event (event.syswm.*) . | A structure that contains a video driver dependent system event. |
| Line 22: | Line 22: |
| *<<BR>>If you want to obtain system-specific information about the window manager, you can fill in the '''version''' member of an [[SDL_SysWMinfo]] structure (details can be found in SDL_syswm.h, ,,which must be included,,) using the [[SDL_VERSION]]() macro found in SDL_version.h, and pass it to the function* ,,[[SDL_GetWMInfo]](),,. <<Color2(green,I think this function has been replaced by [[SDL_GetWindowWMInfo]](). Is that right? Old wiki included)>> {{{ | [[SDL_SysWMEvent]] is a member of the [[SDL_Event]] union and is used when an event of type SDL_SYSWMEVENT is reported. You would access it through the event's `syswm` field. *<<BR>>If you want to obtain system-specific information about the window manager, you can fill in the `version` member of an [[SDL_SysWMinfo]] structure (details can be found in SDL_syswm.h, ,,which must be included,,) using the [[SDL_VERSION]]() macro found in SDL_version.h, and pass it to the function* ,,[[SDL_GetWMInfo]](),,. <<Color2(green,I think this function has been replaced by [[SDL_GetWindowWMInfo]](). Is that right? Old wiki included)>> {{{ |
DRAFT |
SDL_SysWMEvent
A structure that contains a video driver dependent system event.
Contents
Data Fields
Uint32 |
type |
SDL_SYSWMEVENT |
msg |
driver dependent data, defined in SDL_syswm.h |
Code Examples
You can add your code example here
Remarks
If you want to use this event, you should include SDL_syswm.h.
SDL_SysWMEvent is a member of the SDL_Event union and is used when an event of type SDL_SYSWMEVENT is reported. You would access it through the event's syswm field.
*
If you want to obtain system-specific information about the window manager, you can fill in the version member of an SDL_SysWMinfo structure (details can be found in SDL_syswm.h, which must be included) using the SDL_VERSION() macro found in SDL_version.h, and pass it to the function* [[SDL_GetWMInfo]](). green
int SDL_GetWMInfo(SDL_SysWMinfo *info);
Related Enumerations
Related Structures
