diff options
author | waker <wakeroid@gmail.com> | 2012-04-11 15:07:03 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-04-11 15:07:03 +0200 |
commit | f3be0b78518bf846321861e2f9e3bd3d9c6325d4 (patch) | |
tree | 72d8d44cea60cfd2857c352de706e57552758b2d /plugins/gtkui/gtkui_api.h | |
parent | 3c495b329da0f5cf880dc4004922df9b291eea18 (diff) |
gtkui: now every widget can save its custom data
Diffstat (limited to 'plugins/gtkui/gtkui_api.h')
-rw-r--r-- | plugins/gtkui/gtkui_api.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/gtkui/gtkui_api.h b/plugins/gtkui/gtkui_api.h index 672112ce..c31325fc 100644 --- a/plugins/gtkui/gtkui_api.h +++ b/plugins/gtkui/gtkui_api.h @@ -30,8 +30,6 @@ typedef struct ddb_gtkui_widget_s { const char *type; char *name; - int width; - int height; struct ddb_gtkui_widget_s *parent; @@ -39,6 +37,10 @@ typedef struct ddb_gtkui_widget_s { uint32_t flags; + const char *(*load) (struct ddb_gtkui_widget_s *w, const char *s); + + void (*save) (struct ddb_gtkui_widget_s *w, char *s, int sz); + void (*destroy) (struct ddb_gtkui_widget_s *w); void (*append) (struct ddb_gtkui_widget_s *container, struct ddb_gtkui_widget_s *child); |