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/MarginView.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/MarginView.h')
-rw-r--r-- | src/MarginView.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |