From fe1790fd889dfacc6e4f4a32bfebe29789d5a9ed Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 17 Jun 2011 23:20:45 +0200 Subject: initial work to add customizable layout support: defined data structures, few stubs, many regressions, implemented tabbed playlist widget; now it should be possible to have several playlist viewers visible at the same time; playlist keyboard handling is partially broken --- plugins/gtkui/gtkui_api.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'plugins/gtkui/gtkui_api.h') diff --git a/plugins/gtkui/gtkui_api.h b/plugins/gtkui/gtkui_api.h index f20c411e..0857e886 100644 --- a/plugins/gtkui/gtkui_api.h +++ b/plugins/gtkui/gtkui_api.h @@ -25,9 +25,22 @@ #ifndef __GTKUI_API_H #define __GTKUI_API_H +typedef struct ddb_gtkui_widget_s { + const char *type; + GtkWidget *widget; + + void (*destroy) (struct ddb_gtkui_widget_s *w); + int (*message) (struct ddb_gtkui_widget_s *w, uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2); + struct ddb_gtkui_widget_s *children; + struct ddb_gtkui_widget_s *next; // points to next widget in the same container +} ddb_gtkui_widget_t; + typedef struct { DB_gui_t gui; GtkWidget * (*get_mainwin) (void); + void (*reg_widget) (const char *type, ddb_gtkui_widget_t *(*create_func) (void)); + void (*unreg_widget) (const char *type); + ddb_gtkui_widget_t * (*get_root_widget) (void); } ddb_gtkui_t; #endif -- cgit v1.2.3