wrevent_w ( event, ... )
SDL_ResizeEvent *event
CODE:
+ if( items > 1 )
+ {
+ event->w = SvIV( ST(1) );
+
+ }
+
RETVAL = event->w;
OUTPUT:
RETVAL
wrevent_h ( event, ... )
SDL_ResizeEvent *event
CODE:
+ if( items > 1 )
+ {
+ event->h = SvIV( ST(1) );
+
+ }
+
RETVAL = event->h;
OUTPUT:
RETVAL
+
+void
+wrevent_DESTROY ( event)
+ SDL_ResizeEvent *event
+ CODE:
+ safefree( (char *) event);
PREINIT:
char* CLASS = "SDL::SysWMmsg";
CODE:
- RETVAL = &(event->msg);
+ if( items > 1 )
+ {
+ SDL_SysWMmsg * sysm = (SDL_SysWMmsg * )SvPV( ST(1), PL_na) ;
+ event->msg = sysm;
+
+ }
+
+ RETVAL = event->msg;
OUTPUT:
RETVAL
+
+void
+wmevent_DESTROY ( event)
+ SDL_SysWMEvent *event
+ CODE:
+ safefree( (char *) event);
+