diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-22 23:30:26 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-10-23 00:19:20 +0300 |
commit | 54ef5bd641ef5c6938b591697115d63af381ebc3 (patch) | |
tree | 714690adf71ad9cd358352da0de70eaf28e0d8fd /include/touch/touch.h | |
parent | 025bd0fab4cd8e4f90c362ec03b51c23e0a55655 (diff) |
More work on selection handling in iOS
Got the selection start and end handle dragging working... The trick was not
to call SwWrtShell::SetCursor(), but SwCrsrShell::SetCrsr(). Sounds easy but
took a lot of guessing and experimentation to figure out. Anyway, now it does
what I had expected it to do a few das ago already.
There are glitches, especially in corner cases like if you move the start
handle past the end handle or vice versa.
more
Change-Id: Id6c1d99a4052531789bccf0d48165cfb41b89cfe
9b94c0dd55b04a7b6b3c40654562a9c51fa9b450
Diffstat (limited to 'include/touch/touch.h')
-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 f999eca745e0..7dddaf36eb8c 100644 --- a/include/touch/touch.h +++ b/include/touch/touch.h @@ -113,9 +113,12 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, int void touch_lo_mouse_drag(int x, int y, MLOMouseButtonState state); +// Move the start of the selection to (x,y) +void touch_lo_selection_start_move(const void *documentHandle, + int x, + int y); + // Move the end of the selection to (x,y) -// (work in progress, of course there should be a corresponding function -// to move the start of the selection, too.) void touch_lo_selection_end_move(const void *documentHandle, int x, int y); |