diff options
author | nyamatongwe <unknown> | 2009-07-03 06:36:25 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-03 06:36:25 +0000 |
commit | 5c649dc18f3610af94df30bfe457a8f6fabfc63a (patch) | |
tree | 23fca327b0795859289d499439b4d6968810f2a8 /src/Editor.h | |
parent | 6c7369b142dbefe0323ca0af53b6359c78225a5c (diff) | |
download | scintilla-mirror-5c649dc18f3610af94df30bfe457a8f6fabfc63a.tar.gz |
Use screen point for caret that includes virtual spcace so that, for
example, the IME appears near the caret when the caret is in virtual space.
Changed LocationFromPosition to work on a SelectionPosition and
added convenience method for finding screen point of main caret.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h index ab1e9a1e8..68580fdaa 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -258,6 +258,7 @@ protected: // ScintillaBase subclass needs access to much of Editor int LinesToScroll(); int MaxScrollPos(); SelectionPosition ClampPositionIntoDocument(SelectionPosition sp) const; + Point LocationFromPosition(SelectionPosition pos); Point LocationFromPosition(int pos); int XFromPosition(int pos); int XFromPosition(SelectionPosition sp); @@ -295,6 +296,7 @@ protected: // ScintillaBase subclass needs access to much of Editor int MovePositionTo(int newPos, Selection::selTypes sel=Selection::noSel, bool ensureVisible=true); SelectionPosition MovePositionSoVisible(SelectionPosition pos, int moveDir); SelectionPosition MovePositionSoVisible(int pos, int moveDir); + Point PointMainCaret(); void SetLastXChosen(); void ScrollTo(int line, bool moveThumb=true); |