diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2008-12-11 19:39:49 +0100 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2008-12-11 19:39:49 +0100 |
| commit | a83321436c8d40210bbbd0a44fe1290ed71638af (patch) | |
| tree | 02004c36772311bdc1ba6b9a2508b20691cca5c6 /src/widget/image.c | |
| parent | 3ba6105170ecac2fb124d9eb7e81ba72dd4700b8 (diff) | |
Revert "First pass for renaming screen/widget."
This reverts commit 3ba6105170ecac2fb124d9eb7e81ba72dd4700b8.
Diffstat (limited to 'src/widget/image.c')
| -rw-r--r-- | src/widget/image.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/widget/image.c b/src/widget/image.c deleted file mode 100644 index ad49f9e..0000000 --- a/src/widget/image.c +++ /dev/null @@ -1,52 +0,0 @@ - -#include <stdlib.h> -#include <assert.h> - -#include <stdlib.h> -#include "main.h" -#include "image.h" -#include "interface.h" -#include "font.h" - -#include "widget.h" -#include "widget_image.h" - -widget_t *newWidgetImage(int x, int y, image_t * image) -{ - widget_image_t *new; - - new = malloc(sizeof(widget_image_t)); - new->image = image; - - return newWidget(WIDGET_TYPE_IMAGE, x, y, image->w, image->h, new); -} - -void drawWidgetImage(widget_t * widget) -{ - widget_image_t *p; - - assert(widget != NULL); - assert(widget->type == WIDGET_TYPE_IMAGE); - - p = (widget_image_t *) widget->private_data; - drawImage(p->image, widget->x, widget->y, 0, 0, p->image->w, p->image->h); -} - -void eventWidgetImage(widget_t * widget) -{ - assert(widget != NULL); - assert(widget->type == WIDGET_TYPE_IMAGE); -} - -void destroyWidgetImage(widget_t * widget) -{ - widget_image_t *p; - - assert(widget != NULL); - assert(widget->type == WIDGET_TYPE_IMAGE); - - p = (widget_image_t *) widget->private_data; - - free(p); - destroyWidget(widget); -} |