diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2014-03-27 16:15:21 +1100 |
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2014-03-27 16:15:21 +1100 |
| commit | c986369e3282e167711fba21f6ebe25e519b82dc (patch) | |
| tree | 020923e5cb6ca1802880202d31742d4112f5bd41 /cocoa/ScintillaCocoa.h | |
| parent | 8d1efd730218d8a434447c7e73ac03720825fb84 (diff) | |
| download | scintilla-mirror-c986369e3282e167711fba21f6ebe25e519b82dc.tar.gz | |
Improve scrolling by performing styling in methods called before drawing instead of inside drawing
which then caused the drawing to be abandoned, and black blocks to appear on-screen.
Discard responsive scrolling overdraw when that overdrawn content is invalid.
Style just the visible area instead of the whole document when styling changes run beyond
painting area.
Diffstat (limited to 'cocoa/ScintillaCocoa.h')
| -rw-r--r-- | cocoa/ScintillaCocoa.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 9098d2000..415094c35 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -113,8 +113,10 @@ private: protected: Point GetVisibleOriginInMain(); PRectangle GetClientRectangle(); + virtual PRectangle GetClientDrawingRectangle(); Point ConvertPoint(NSPoint point); virtual void RedrawRect(PRectangle rc); + virtual void DiscardOverdraw(); virtual void Redraw(); virtual void Initialise(); @@ -144,6 +146,7 @@ public: bool SetIdle(bool on); void SetMouseCapture(bool on); bool HaveMouseCapture(); + void WillDraw(NSRect rect); void ScrollText(int linesToMove); void SetVerticalScrollPos(); void SetHorizontalScrollPos(); |
