Wiki Page Content

Differences between revisions 12 and 13
Revision 12 as of 2011-12-31 20:59:04
Size: 1441
Editor: SheenaSmith
Comment: minor changes
Revision 13 as of 2013-08-08 21:02:08
Size: 1412
Editor: RyanGordon
Comment: Edited
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 20: Line 19:
This event is disabled by default. You can enable it with [[SDL_EventState]]() This event is disabled by default. You can enable it with [[SDL_EventState]](). You are encouraged to avoid this if you can find a less platform-specific way to accomplish your goals.
Line 22: Line 21:
If you want to use this event you should include SDL_syswm.h. If you want to use this event you should include SDL_syswm.h and have access to the appropriate system headers.
Line 26: Line 25:
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) using the [[SDL_VERSION]]() macro found in SDL_version.h, and pass it to the function [[SDL_GetWindowWMInfo]]().
 {{{
int SDL_GetWindowWMInfo(SDL_SysWMinfo *info);
}}}
If you want to obtain system-specific information about the window manager you can fill in the `version` member of an [[SDL_SysWMinfo]] structure using the [[SDL_VERSION]]() macro found in SDL_version.h, and pass it to the function [[SDL_GetWindowWMInfo]]().
Line 32: Line 28:
 .[[SDL_EventMask]]???
Line 38: Line 33:
 .[[SDL_SysWMmsg]]???  .[[SDL_SysWMmsg]]
Line 42: Line 37:
 .[[SDL_GetWindowWMInfo]] *???  .[[SDL_GetWindowWMInfo]]

SDL_SysWMEvent

A structure that contains a video driver dependent system event.

Data Fields

Uint32

type

SDL_SYSWMEVENT

SDL_SysWMmsg*

msg

driver dependent data, defined in SDL_syswm.h

Code Examples

You can add your code example here

Remarks

This event is disabled by default. You can enable it with SDL_EventState(). You are encouraged to avoid this if you can find a less platform-specific way to accomplish your goals.

If you want to use this event you should include SDL_syswm.h and have access to the appropriate system headers.

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 using the SDL_VERSION() macro found in SDL_version.h, and pass it to the function SDL_GetWindowWMInfo().


CategoryStruct, CategoryEvents

None: SDL_SysWMEvent (last edited 2013-09-05 20:32:14 by PhilippWiesemann)

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