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 | 9443fa7835ed12df03136b70dc5222c58148b170 (patch) | |
| tree | 01a84530f29175f6be03996cbe11fb5a28254288 /src/PositionCache.h | |
| parent | c6d618d13d5640c75dd74a6a12d79a85e9dad2d0 (diff) | |
| download | scintilla-mirror-9443fa7835ed12df03136b70dc5222c58148b170.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;  }; | 
