aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-11-19 13:48:37 +1100
committerNeil <nyamatongwe@gmail.com>2014-11-19 13:48:37 +1100
commit3abacf188f611b460ad08818e2339c77f3ad85a5 (patch)
tree94deae5111f5c098781cde15ce415888f48ff0aa /src/MarginView.h
parente9852dc1ceb2756b10ec6ab6b2238346e883e115 (diff)
downloadscintilla-mirror-3abacf188f611b460ad08818e2339c77f3ad85a5.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.h9
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);