Kaydet (Commit) 4fb38c6f authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Miklos Vajna

android: get cursor position from TextCursorLayer/View

Change-Id: I7629deb6e01ace052ac8bec70202844bc627ea85
üst 6d9af889
...@@ -195,6 +195,10 @@ public class TextCursorLayer extends Layer { ...@@ -195,6 +195,10 @@ public class TextCursorLayer extends Layer {
} }
}); });
} }
public RectF getCursorPosition() {
return mCursorView.getCursorPosition();
}
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -372,6 +372,10 @@ public class TextCursorView extends View implements View.OnTouchListener { ...@@ -372,6 +372,10 @@ public class TextCursorView extends View implements View.OnTouchListener {
} }
return null; return null;
} }
public RectF getCursorPosition() {
return mCursor.mPosition;
}
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment