diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-02-07 17:52:36 +0100 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-02-07 17:52:36 +0100 |
| commit | dc1bd4d1dcf8713bc5be0e9a154d44b43f71ddf8 (patch) | |
| tree | b0372c2abc47ac869f654acc786131740ee146a9 /src/widget/image.c | |
| parent | eecde9b1f70397367f3f0dea4c47f27064f13fc0 (diff) | |
Revert "Revert "Revert "First pass renaming sreen and widgets."""
This reverts commit 87821f04c9565450d8e724be76993ae5ea2c20c4.
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 2c9702f..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 "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); -} |