diff options
author | nyamatongwe <unknown> | 2013-03-15 23:34:46 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-03-15 23:34:46 +1100 |
commit | 93f47df6328a33e7d2044afbe135d1189157e63d (patch) | |
tree | feeba874832959d2fced7cd5836d46a732310785 /src/Editor.h | |
parent | 9b1adea4079a2384f93acb83bd4d1a7a7b709819 (diff) | |
download | scintilla-mirror-93f47df6328a33e7d2044afbe135d1189157e63d.tar.gz |
Use an NSScrollView on Cocoa for kinetic scrolling and hiding scrollbars unless wanted.
Also affects platform-independent code.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h index bf3e26d92..91cbd59a4 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -148,6 +148,7 @@ protected: // ScintillaBase subclass needs access to much of Editor /** On GTK+, Scintilla is a container widget holding two scroll bars * whereas on Windows there is just one window with both scroll bars turned on. */ Window wMain; ///< The Scintilla parent window + Window wMargin; ///< May be separate when using a scroll view for wMain /** Style resources may be expensive to allocate so are cached between uses. * When a style attribute is changed, this cache is flushed. */ @@ -199,6 +200,7 @@ protected: // ScintillaBase subclass needs access to much of Editor Surface *pixmapLine; Surface *pixmapSelMargin; Surface *pixmapSelPattern; + Surface *pixmapSelPatternOffset1; Surface *pixmapIndentGuide; Surface *pixmapIndentGuideHighlight; @@ -308,6 +310,11 @@ protected: // ScintillaBase subclass needs access to much of Editor void DropGraphics(bool freeObjects); void AllocateGraphics(); + // The top left visible point in main window coordinates. Will be 0,0 except for + // scroll views where it will be equivalent to the current scroll position. + virtual Point GetVisibleOriginInMain(); + Point DocumentPointFromView(Point ptView); // Convert a point from view space to document + int TopLineOfMain(); // Return the line at Main's y coordinate 0 virtual PRectangle GetClientRectangle(); PRectangle GetTextRectangle(); |