From 3abacf188f611b460ad08818e2339c77f3ad85a5 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 19 Nov 2014 13:48:37 +1100 Subject: Platform overrides for some drawing and behaviour to benefit PLAT_CURSES. From Mitchell Foral. --- src/MarginView.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/MarginView.h') diff --git a/src/MarginView.h b/src/MarginView.h index 465095f29..ff5564676 100644 --- a/src/MarginView.h +++ b/src/MarginView.h @@ -14,6 +14,8 @@ namespace Scintilla { void DrawWrapMarker(Surface *surface, PRectangle rcPlace, bool isEndMarker, ColourDesired wrapColour); +typedef void (*DrawWrapMarkerFn)(Surface *surface, PRectangle rcPlace, bool isEndMarker, ColourDesired wrapColour); + /** * MarginView draws the margins. */ @@ -25,6 +27,13 @@ public: // Highlight current folding block HighlightDelimiter highlightDelimiter; + int wrapMarkerPaddingRight; // right-most pixel padding of wrap markers + /** Some platforms, notably PLAT_CURSES, do not support Scintilla's native + * DrawWrapMarker function for drawing wrap markers. Allow those platforms to + * override it instead of creating a new method in the Surface class that + * existing platforms must implement as empty. */ + DrawWrapMarkerFn customDrawWrapMarker; + MarginView(); void DropGraphics(bool freeObjects); -- cgit v1.2.3