summaryrefslogtreecommitdiff
path: root/src/widget/widget_container.h
diff options
context:
space:
mode:
authorDusan Durech <dusan.d@Centrum.sk>2009-06-15 14:49:04 +0200
committerDusan Durech <dusan.d@Centrum.sk>2009-06-15 14:49:04 +0200
commit9b7a6f66182020913cd9b5b1205634dabbcf081e (patch)
tree1d21745d28f559a1c1f13be4bdaaf8ef0cc7ba56 /src/widget/widget_container.h
parent20def950be569ed6c6e9887f80dc3beca27765d8 (diff)
add widget container, hi is use in mainMenu and small diff
Diffstat (limited to 'src/widget/widget_container.h')
-rw-r--r--src/widget/widget_container.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/widget/widget_container.h b/src/widget/widget_container.h
new file mode 100644
index 0000000..7b7708d
--- /dev/null
+++ b/src/widget/widget_container.h
@@ -0,0 +1,20 @@
+#ifndef WIDGET_CONTAINER_H
+
+#define WIDGET_CONTAINER_H
+
+#include "list.h"
+#include "widget.h"
+
+typedef struct widget_container {
+
+ list_t *listWidget;
+} widget_container_t;
+
+extern widget_t* widget_container_new(int x, int y, int w, int h);
+extern void widget_container_add(widget_t *widget, widget_t *widget_add);
+extern void widget_set_layout_table(widget_t *widget, int countW, int countH, int w, int h);
+extern void widget_container_draw(widget_t *widget);
+extern void widget_container_event(widget_t *widget);
+extern void widget_container_destroy(widget_t *widget);
+
+#endif /* WIDGET_CONTAINER_H */