blob: 64374513a6578a8d972deec8727321355c5dab90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include <stdlib.h>
#include <stdlib.h>
#include "main.h"
#include "image.h"
#include "interface.h"
#include "font.h"
#include "widget_image.h"
widget_image_t* newWidgetImage(int x, int y, SDL_Surface *image)
{
widget_image_t *new;
new = malloc( sizeof(widget_image_t) );
new->x = x;
new->y = y;
new->image = image;
return new;
}
void drawWidgetImage(widget_image_t *p)
{
drawImage(p->image, p->x, p->y, 0, 0, p->image->w, p->image->h);
}
void eventWidgetImage(widget_image_t *p)
{
}
void destroyWidgetImage(widget_image_t *p)
{
free(p);
}
|