diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-02-26 12:08:20 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-02-26 12:08:20 +1100 | 
| commit | 1f51cbbccab97cb10f1cbf63b422c6a9cb4dfa78 (patch) | |
| tree | 6a64fc8a895321291bea24a95988b43a8635c722 /src/PositionCache.h | |
| parent | ebba676e693c952b36546bff7870602f3b269b7f (diff) | |
| download | scintilla-mirror-1f51cbbccab97cb10f1cbf63b422c6a9cb4dfa78.tar.gz | |
Refactor methods for converting screen points to and from document index, moving code
from Editor to LineLayout.
Diffstat (limited to 'src/PositionCache.h')
| -rw-r--r-- | src/PositionCache.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/PositionCache.h b/src/PositionCache.h index 2b4223769..871bb6e46 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -60,12 +60,15 @@ public:  	void Invalidate(validLevel validity_);  	int LineStart(int line) const;  	int LineLastVisible(int line) const; +	Range SubLineRange(int line) const;  	bool InLine(int offset, int line) const;  	void SetLineStart(int line, int start);  	void SetBracesHighlight(Range rangeLine, Position braces[],  		char bracesMatchStyle, int xHighlight, bool ignoreStyle);  	void RestoreBracesHighlight(Range rangeLine, Position braces[], bool ignoreStyle);  	int FindBefore(XYPOSITION x, int lower, int upper) const; +	int FindPositionFromX(XYPOSITION x, Range range, bool charPosition) const; +	Point PointFromPosition(int posInLine, int lineHeight) const;  	int EndLineStyle() const;  }; | 
