summaryrefslogtreecommitdiff
path: root/include/touch
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-22 23:30:26 +0300
committerTor Lillqvist <tml@collabora.com>2013-10-23 00:19:20 +0300
commit54ef5bd641ef5c6938b591697115d63af381ebc3 (patch)
tree714690adf71ad9cd358352da0de70eaf28e0d8fd /include/touch
parent025bd0fab4cd8e4f90c362ec03b51c23e0a55655 (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')
-rw-r--r--include/touch/touch-impl.h4
-rw-r--r--include/touch/touch.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/include/touch/touch-impl.h b/include/touch/touch-impl.h
index a2550b1958bf..f786f44c8e42 100644
--- a/include/touch/touch-impl.h
+++ b/include/touch/touch-impl.h
@@ -20,6 +20,10 @@ extern "C" {
// "Implementation" of touch_lo_* functions, called on the LO thread through
// the PostUserEvent mechanism. Not called by UI thread code.
+void touch_lo_selection_start_move_impl(const void *documentHandle,
+ int x,
+ int y);
+
void touch_lo_selection_end_move_impl(const void *documentHandle,
int x,
int y);
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);