From 04ece30fa930743d21af95d809acc2d25f82848a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 11 Jan 2012 14:20:26 +0000 Subject: Pass pointer constraints for drag out to front ends. Ensure content scrollbar drag termination always informs the browser window layer that the drag is over. svn path=/trunk/netsurf/; revision=13395 --- desktop/gui.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'desktop/gui.h') diff --git a/desktop/gui.h b/desktop/gui.h index dc2841fb8..dcb9160a5 100644 --- a/desktop/gui.h +++ b/desktop/gui.h @@ -41,6 +41,12 @@ typedef enum { GUI_SAVE_CLIPBOARD_CONTENTS } gui_save_type; +typedef enum { + GDRAGGING_NONE, + GDRAGGING_SCROLLBAR, + GDRAGGING_OTHER +} gui_drag_type; + struct gui_window; struct gui_download_window; struct browser_window; @@ -100,8 +106,10 @@ void gui_window_place_caret(struct gui_window *g, int x, int y, int height); void gui_window_remove_caret(struct gui_window *g); void gui_window_new_content(struct gui_window *g); bool gui_window_scroll_start(struct gui_window *g); -bool gui_window_box_scroll_start(struct gui_window *g, - int x0, int y0, int x1, int y1); + +bool gui_window_drag_start(struct gui_window *g, gui_drag_type type, + struct rect *rect); + void gui_window_save_link(struct gui_window *g, const char *url, const char *title); -- cgit v1.2.3