summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 00:48:46 +0000
committerracarr <racarr>2007-01-29 00:48:46 +0000
commit3d436c538ad9a191592668affbc1666f4006621e (patch)
treec563772f553035cffc7715a44661f46c3e4356c7
parentef9143c5c9a3978b2a394437f2506a810f7f3151 (diff)
downloadberyl-desktop-manager-3d436c538ad9a191592668affbc1666f4006621e.tar.gz
beryl-desktop-manager-3d436c538ad9a191592668affbc1666f4006621e.tar.bz2
testWidget ?
-rw-r--r--src/testWidget.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/testWidget.c b/src/testWidget.c
new file mode 100644
index 0000000..321c3ae
--- /dev/null
+++ b/src/testWidget.c
@@ -0,0 +1,59 @@
+#include "bdm-widget.h"
+#include <cairo/cairo.h>
+
+BDMImage * images;
+BDMText * texts;
+BDMWidget * mywidget;
+int init (BDMWidget * widget)
+{
+ images = malloc(sizeof(BDMImage));
+ texts = malloc(sizeof(BDMText));
+ mywidget = widget;
+
+ images->attrib->x = 100;
+ images->attrib->y = 100;
+ images->attrib->alpha = 1.0f;
+ images->attrib->width = 100;
+ images->attrib->height = 100;
+ images->attrib->needsPainting = 1;
+ images->attrib->cairoOperator = CAIRO_OPERATOR_OVER;
+ images->attrib->updateFont = 0;
+
+ images->next = 0;
+ images->prev = 0;
+ images->widget = widget;
+
+ images->pixbuf = gdk_pixbuf_new_from_file("/home/robb/bdm4.png",NULL);
+ images->pixW = 1280;
+ images->pixH = 800;
+ return 1;
+
+ // Initialize images and texts
+}
+
+int fini (void)
+{
+ // STUFF
+ return 1;
+}
+
+int update (void)
+{
+ // BLA
+ return 1;
+}
+
+BDMImage * getImages(void)
+{
+ return images;
+}
+
+BDMText * getTexts(void)
+{
+ return texts;
+}
+
+int handleEvent(BDMEvent * event)
+{
+ return 1;
+} \ No newline at end of file