},
libraries => [qw( SDL )],
},
+ ResizeEvent => {
+ file => {
+ from => 'src/Core/objects/ResizeEvent.xs',
+ to => 'lib/SDL/ResizeEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
VideoInfo => {
file => {
--- /dev/null
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+#ifndef aTHX_
+#define aTHX_
+#endif
+
+#include <SDL.h>
+
+MODULE = SDL::ResizeEvent PACKAGE = SDL::ResizeEvent PREFIX = wrevent_
+
+=for documentation
+
+SDL_ResizeEvent -- Window resize event structure
+
+ typedef struct{
+ Uint8 type;
+ Uint w, h;
+ } SDL_ResizeEvent;
+
+
+=cut
+
+Uint8
+wrevent_type ( event, ... )
+ SDL_ResizeEvent *event
+ CODE:
+ RETVAL = event->type;
+ OUTPUT:
+ RETVAL
+
+int
+wrevent_w ( event, ... )
+ SDL_ResizeEvent *event
+ CODE:
+ RETVAL = event->w;
+ OUTPUT:
+ RETVAL
+
+int
+wrevent_h ( event, ... )
+ SDL_ResizeEvent *event
+ CODE:
+ RETVAL = event->h;
+ OUTPUT:
+ RETVAL