summaryrefslogtreecommitdiff
path: root/include/widget_buttonimage.h
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-01 21:30:00 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-01 21:30:00 +0000
commit8a14d60d2078b4bcdfc789b1b9794e2008979f02 (patch)
treea6095da867303ec71fed55a952ecd45fc0835417 /include/widget_buttonimage.h
parentf5258aed755575c1abf269348e4e335cdcb17a3b (diff)
- screen na vyberanie aren
- areny z povodnych tuxancov boli prescriptovane do tuxanci-ng, treba este dopisat teleporty a rury git-svn-id: http://opensvn.csie.org/tuxanci_ng@7 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/widget_buttonimage.h')
-rw-r--r--include/widget_buttonimage.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/widget_buttonimage.h b/include/widget_buttonimage.h
new file mode 100644
index 0000000..8b279ce
--- /dev/null
+++ b/include/widget_buttonimage.h
@@ -0,0 +1,25 @@
+
+#ifndef WIDGET_BUTTONIMAGE_H
+
+#define WIDGET_BUTTONIMAGE_H
+
+#define WIDGET_BUTTONIMAGE_TIME 10
+
+typedef struct widget_buttonimageimage
+{
+ int x, y;
+ int w, h;
+ int active;
+ SDL_Surface *image;
+ void (*fce_event)(void *);
+} widget_buttonimage_t;
+
+extern widget_buttonimage_t* newWidgetButtonimage(SDL_Surface *image, int x, int y,
+ void (*fce_event)(void *));
+
+extern void drawWidgetButtonimage(widget_buttonimage_t *p);
+extern void eventWidgetButtonimage(widget_buttonimage_t *p);
+extern void destroyWidgetButtonimage(widget_buttonimage_t *p);
+
+#endif
+