1 // Scintilla source code edit control
3 ** Defines the appearance of the editor margin.
5 // Copyright 1998-2014 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
15 void DrawWrapMarker(Surface
*surface
, PRectangle rcPlace
, bool isEndMarker
, ColourDesired wrapColour
);
17 typedef void (*DrawWrapMarkerFn
)(Surface
*surface
, PRectangle rcPlace
, bool isEndMarker
, ColourDesired wrapColour
);
20 * MarginView draws the margins.
24 std::unique_ptr
<Surface
> pixmapSelMargin
;
25 std::unique_ptr
<Surface
> pixmapSelPattern
;
26 std::unique_ptr
<Surface
> pixmapSelPatternOffset1
;
27 // Highlight current folding block
28 HighlightDelimiter highlightDelimiter
;
30 int wrapMarkerPaddingRight
; // right-most pixel padding of wrap markers
31 /** Some platforms, notably PLAT_CURSES, do not support Scintilla's native
32 * DrawWrapMarker function for drawing wrap markers. Allow those platforms to
33 * override it instead of creating a new method in the Surface class that
34 * existing platforms must implement as empty. */
35 DrawWrapMarkerFn customDrawWrapMarker
;
39 void DropGraphics(bool freeObjects
);
40 void AllocateGraphics(const ViewStyle
&vsDraw
);
41 void RefreshPixMaps(Surface
*surfaceWindow
, WindowID wid
, const ViewStyle
&vsDraw
);
42 void PaintMargin(Surface
*surface
, Sci::Line topLine
, PRectangle rc
, PRectangle rcMargin
,
43 const EditModel
&model
, const ViewStyle
&vs
);