summaryrefslogtreecommitdiff
path: root/desktop/gui.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-11 22:34:12 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-11 22:34:12 +0000
commitc8496df3df7d059528f2d5e735be5c55bfa75ef6 (patch)
tree7979e63f7e548c7a9d6bb024afde7b1bc785ff44 /desktop/gui.h
parentd3c392c3d3b516f05fbf71020b2f6774ce20ce8c (diff)
downloadnetsurf-c8496df3df7d059528f2d5e735be5c55bfa75ef6.tar.gz
netsurf-c8496df3df7d059528f2d5e735be5c55bfa75ef6.tar.bz2
move window creation and destruction into table
Diffstat (limited to 'desktop/gui.h')
-rw-r--r--desktop/gui.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/desktop/gui.h b/desktop/gui.h
index 2bda996fd..940eef0a5 100644
--- a/desktop/gui.h
+++ b/desktop/gui.h
@@ -75,16 +75,22 @@ struct gui_table {
*/
void (*poll)(bool active); /* Mandantory */
+ /** create a gui window for a browser window */
+ struct gui_window *(*window_create)(struct browser_window *bw,
+ struct browser_window *clone,
+ bool new_tab); /* Mandantory */
+
+ /** destroy previously created gui window */
+ void (*window_destroy)(struct gui_window *g); /* Mandantory */
+
+
/** called to allow the gui to cleanup */
- void (*quit)(void); /* optional */
+ void (*quit)(void); /* Optional */
};
extern struct gui_table *guit; /* the gui vtable */
-struct gui_window *gui_create_browser_window(struct browser_window *bw,
- struct browser_window *clone, bool new_tab);
-void gui_window_destroy(struct gui_window *g);
void gui_window_set_title(struct gui_window *g, const char *title);
void gui_window_redraw_window(struct gui_window *g);
void gui_window_update_box(struct gui_window *g,