summaryrefslogtreecommitdiff
path: root/framebuffer/fb_rootwindow.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-02-13 00:31:24 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-02-13 00:31:24 +0000
commitf32c4ff799e7a76eaa2eb9a8356033d7d4c34c4f (patch)
tree0676c53a37b7238c6f8c15d7494eee93d74d8cac /framebuffer/fb_rootwindow.h
parente5c225f7d9c210ab970aee73d66d82874467c81d (diff)
downloadnetsurf-f32c4ff799e7a76eaa2eb9a8356033d7d4c34c4f.tar.gz
netsurf-f32c4ff799e7a76eaa2eb9a8356033d7d4c34c4f.tar.bz2
alter mouse click handling so browser window is uses the same interface
as other root window widgets svn path=/trunk/netsurf/; revision=6464
Diffstat (limited to 'framebuffer/fb_rootwindow.h')
-rw-r--r--framebuffer/fb_rootwindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/framebuffer/fb_rootwindow.h b/framebuffer/fb_rootwindow.h
index 0a4ebe867..a0db2af33 100644
--- a/framebuffer/fb_rootwindow.h
+++ b/framebuffer/fb_rootwindow.h
@@ -16,5 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-void fb_rootwindow_click(framebuffer_t *fb, struct gui_window *g,browser_mouse_state st , int x, int y);
+typedef int (*fb_widget_mouseclick_t)(struct gui_window *g, browser_mouse_state st, int x, int y);
+
+void fb_rootwindow_click(struct gui_window *g, browser_mouse_state st , int x, int y);
void fb_rootwindow_create(framebuffer_t *fb);
+
+struct fb_widget *fb_add_window_widget(struct gui_window *g, fb_widget_mouseclick_t click_rtn);