summaryrefslogtreecommitdiff
path: root/desktop/browser.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-27 17:29:49 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-27 17:29:49 +0000
commit23eea5de9fc46283123248bc3c1306266297205c (patch)
tree5d7a8686ac0fb1618383fa15b69e8aa372d691ce /desktop/browser.h
parent311080ff54268aeccc19277dead9f276e27e1f43 (diff)
downloadnetsurf-23eea5de9fc46283123248bc3c1306266297205c.tar.gz
netsurf-23eea5de9fc46283123248bc3c1306266297205c.tar.bz2
Fix bw->drag_type to be aware of remaining drag types.
svn path=/trunk/netsurf/; revision=12514
Diffstat (limited to 'desktop/browser.h')
-rw-r--r--desktop/browser.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/desktop/browser.h b/desktop/browser.h
index 830b22b0a..cdf071645 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -55,6 +55,15 @@ typedef void (*browser_move_callback)(struct browser_window *bw,
void *p);
+typedef enum {
+ DRAGGING_NONE,
+ DRAGGING_SELECTION,
+ DRAGGING_PAGE_SCROLL,
+ DRAGGING_FRAME,
+ DRAGGING_OTHER
+} browser_drag_type;
+
+
/** Browser window data. */
struct browser_window {
@@ -91,12 +100,7 @@ struct browser_window {
char *frag_id;
/** Current drag status. */
- enum {
- DRAGGING_NONE,
- DRAGGING_SELECTION,
- DRAGGING_PAGE_SCROLL,
- DRAGGING_FRAME
- } drag_type;
+ browser_drag_type drag_type;
/** Mouse position at start of current scroll drag. */
int drag_start_x;
@@ -323,12 +327,22 @@ void browser_window_get_position(struct browser_window *bw, bool root,
* Set the position of the current browser window with respect to the parent
* browser window
*
- * \param bw browser window to get the position of
+ * \param bw browser window to set the position of
* \param x x position of bw
* \param y y position of bw
*/
void browser_window_set_position(struct browser_window *bw, int x, int y);
+/*
+ * Set the position of the current browser window with respect to the parent
+ * browser window
+ *
+ * \param bw browser window to set the type of the current drag for
+ * \param type drag type
+ */
+void browser_window_set_drag_type(struct browser_window *bw,
+ browser_drag_type type);
+
/* In platform specific hotlist.c. */
void hotlist_visited(struct hlcache_handle *c);