diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-18 18:45:13 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-10-18 18:48:03 +0300 |
commit | 4d8f12f57b0f02d3610269eae7b5981010dc7e98 (patch) | |
tree | f770f738cbbe0e24253cc829c1f587a195ac3265 /include/touch | |
parent | 5732ff540edbaa4ad5d92177c48e0a79e385b5cb (diff) |
More text selection WIP hacking
Change-Id: Ia29725295613faf875a688b3917b144a5f05bbe3
Diffstat (limited to 'include/touch')
-rw-r--r-- | include/touch/touch.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/touch/touch.h b/include/touch/touch.h index 11440f16062b..9e5c011df708 100644 --- a/include/touch/touch.h +++ b/include/touch/touch.h @@ -89,12 +89,17 @@ void touch_ui_selection_none(); // where that is wanted, and this all is work in progress. Prefixed by // touch_lo_. +typedef enum { DOWN, MOVE, UP} MLOMouseButtonState; +typedef enum { NONE, SHIFT, META } MLOModifiers; +typedef int MLOModifierMask; + void touch_lo_keyboard_did_hide(); void touch_lo_runMain(); void touch_lo_set_view_size(int width, int height); void touch_lo_render_windows(void *context, int minX, int minY, int width, int height); void touch_lo_tap(int x, int y); +void touch_lo_mouse(int x, int y, MLOMouseButtonState state, MLOModifierMask modifiers); void touch_lo_pan(int deltaX, int deltaY); void touch_lo_zoom(int x, int y, float scale); void touch_lo_keyboard_input(int c); @@ -106,8 +111,6 @@ context, contextHeight, contextWidth specify where to draw. */ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, int tilePosX, int tilePosY, int tileWidth, int tileHeight); -typedef enum { DOWN, MOVE, UP} MLOMouseButtonState; - void touch_lo_mouse_drag(int x, int y, MLOMouseButtonState state); void touch_lo_selection_attempt_resize(const void *documentHandle, |