diff options
author | Neil <nyamatongwe@gmail.com> | 2014-11-19 13:48:37 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-11-19 13:48:37 +1100 |
commit | c1ce889ce992cf7006120c01c336fc51b44de9d1 (patch) | |
tree | 2995c377e0b35b1d389bd3c8875824dd65104650 /src/EditView.h | |
parent | 5007acf288a92f58c3d4a039a69b9baf50bed08b (diff) | |
download | scintilla-mirror-c1ce889ce992cf7006120c01c336fc51b44de9d1.tar.gz |
Platform overrides for some drawing and behaviour to benefit PLAT_CURSES.
From Mitchell Foral.
Diffstat (limited to 'src/EditView.h')
-rw-r--r-- | src/EditView.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/EditView.h b/src/EditView.h index 733612e8e..70af6b2bf 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -42,6 +42,8 @@ void DrawTextNoClipPhase(Surface *surface, PRectangle rc, const Style &style, XY void DrawStyledText(Surface *surface, const ViewStyle &vs, int styleOffset, PRectangle rcText, const StyledText &st, size_t start, size_t length, DrawPhase phase); +typedef void (*DrawTabArrowFn)(Surface *surface, PRectangle rcTab, int ymid); + /** * EditView draws the main text area. */ @@ -78,6 +80,14 @@ public: LineLayoutCache llc; PositionCache posCache; + int tabArrowHeight; // draw arrow heads this many pixels above/below line midpoint + /** Some platforms, notably PLAT_CURSES, do not support Scintilla's native + * DrawTabArrow function for drawing tab characters. Allow those platforms to + * override it instead of creating a new method in the Surface class that + * existing platforms must implement as empty. */ + DrawTabArrowFn customDrawTabArrow; + DrawWrapMarkerFn customDrawWrapMarker; + EditView(); virtual ~EditView(); |