mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-26 20:32:05 +03:00
Add browser_window drag type accessor.
svn path=/trunk/netsurf/; revision=13494
This commit is contained in:
parent
046ee36430
commit
9c0c9ecdfe
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user