From bc37046c6c3ef8004ccb9fb11de4bfce1e672a40 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 1 Jul 2013 15:10:45 +0100 Subject: Pass drag state to core window user. --- desktop/core_window.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'desktop/core_window.h') 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); }; -- cgit v1.2.3