Add browser_window drag type accessor.

svn path=/trunk/netsurf/; revision=13494
This commit is contained in:
Michael Drake 2012-02-28 12:20:49 +00:00
parent 046ee36430
commit 9c0c9ecdfe
2 changed files with 15 additions and 2 deletions

View File

@ -407,6 +407,12 @@ void browser_window_set_drag_type(struct browser_window *bw,
} }
} }
/* exported interface, documented in browser.h */
browser_drag_type browser_window_get_drag_type(struct browser_window *bw)
{
return bw->drag_type;
}
/* exported interface, documented in browser.h */ /* exported interface, documented in browser.h */
struct browser_window * browser_window_get_root(struct browser_window *bw) struct browser_window * browser_window_get_root(struct browser_window *bw)
{ {

View File

@ -410,8 +410,7 @@ void browser_window_scroll_visible(struct browser_window *bw,
void browser_window_set_scroll(struct browser_window *bw, int x, int y); void browser_window_set_scroll(struct browser_window *bw, int x, int y);
/* /*
* Set the position of the current browser window with respect to the parent * Set drag type for a browser window, and inform front end
* browser window
* *
* \param bw browser window to set the type of the current drag for * \param bw browser window to set the type of the current drag for
* \param type drag type * \param type drag type
@ -420,6 +419,14 @@ void browser_window_set_scroll(struct browser_window *bw, int x, int y);
void browser_window_set_drag_type(struct browser_window *bw, void browser_window_set_drag_type(struct browser_window *bw,
browser_drag_type type, const struct rect *rect); browser_drag_type type, const struct rect *rect);
/*
* Get type of any current drag for a browser window
*
* \param bw browser window to set the type of the current drag for
* \return drag type
*/
browser_drag_type browser_window_get_drag_type(struct browser_window *bw);
/* /*
* Get the root level browser window * Get the root level browser window
* *