SDLSysVMInfo
for the system running this windowThe returned value must be freed.
# Get the `SDLSysVMInfo` for the system running this window
#
# The returned value must be freed.
fun wm_info: SDLSysWMInfo `{
SDL_SysWMinfo *val = malloc(sizeof(SDL_SysWMinfo));
SDL_VERSION(&val->version);
if(SDL_GetWindowWMInfo(self, val) <= 0) {
free(val);
return NULL;
}
return val;
`}
lib/sdl2/syswm.nit:27,2--41,3