summaryrefslogtreecommitdiff
path: root/desktop/core_window.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-07-01 15:10:45 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-07-01 15:10:45 +0100
commitbc37046c6c3ef8004ccb9fb11de4bfce1e672a40 (patch)
tree10e84dbb472474a2d68c4283908eaf13c8f69662 /desktop/core_window.h
parentd84805fd515d623e7990a083adcf7e112c66c9ec (diff)
downloadnetsurf-bc37046c6c3ef8004ccb9fb11de4bfce1e672a40.tar.gz
netsurf-bc37046c6c3ef8004ccb9fb11de4bfce1e672a40.tar.bz2
Pass drag state to core window user.
Diffstat (limited to 'desktop/core_window.h')
-rw-r--r--desktop/core_window.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/core_window.h b/desktop/core_window.h
index ad2319b32..b7f1ba32e 100644
--- a/desktop/core_window.h
+++ b/desktop/core_window.h
@@ -27,6 +27,11 @@
struct core_window;
+typedef enum {
+ CORE_WINDOW_DRAG_NONE,
+ CORE_WINDOW_DRAG_SELECTION
+} core_window_drag_status;
+
/** Callbacks to achieve various core window functionality. */
struct core_window_callback_table {
/** Request a redraw of the window. */
@@ -47,6 +52,15 @@ struct core_window_callback_table {
/** Get window viewport dimensions */
void (*get_window_dimensions)(struct core_window *cw,
int *width, int *height);
+
+ /**
+ * Inform corewindow owner of drag status
+ *
+ * \param cw the core window object
+ * \param ds the current drag status
+ */
+ void (*drag_status)(struct core_window *cw,
+ core_window_drag_status ds);
};