diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-20 17:43:48 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-20 17:43:48 +1100 | 
| commit | 5890eafae756457cee82a23bdd0aa49d1ca74172 (patch) | |
| tree | e431efe0f4e6dc531e404da48b5c485c71750ffe /src/LineMarker.h | |
| parent | 1f630daf4b61ea12bc2ec2d688dba2586c172611 (diff) | |
| download | scintilla-mirror-5890eafae756457cee82a23bdd0aa49d1ca74172.tar.gz | |
Use new Surface APIs for marker drawing. Clipping allows rounded fold markers to
be highlighted better.
Diffstat (limited to 'src/LineMarker.h')
| -rw-r--r-- | src/LineMarker.h | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/LineMarker.h b/src/LineMarker.h index 468c53f13..232a29dbb 100644 --- a/src/LineMarker.h +++ b/src/LineMarker.h @@ -13,7 +13,7 @@ namespace Scintilla {  class XPM;  class RGBAImage; -typedef void (*DrawLineMarkerFn)(Surface *surface, PRectangle &rcWhole, const Font *fontForCharacter, int tFold, int marginStyle, const void *lineMarker); +typedef void (*DrawLineMarkerFn)(Surface *surface, const PRectangle &rcWhole, const Font *fontForCharacter, int tFold, int marginStyle, const void *lineMarker);  /**   */ @@ -44,7 +44,8 @@ public:  	void SetXPM(const char *textForm);  	void SetXPM(const char *const *linesForm);  	void SetRGBAImage(Point sizeRGBAImage, float scale, const unsigned char *pixelsRGBAImage); -	void Draw(Surface *surface, PRectangle &rcWhole, const Font *fontForCharacter, FoldPart part, int marginStyle) const; +	void Draw(Surface *surface, const PRectangle &rcWhole, const Font *fontForCharacter, FoldPart part, int marginStyle) const; +	void DrawFoldingMark(Surface *surface, const PRectangle &rcWhole, FoldPart part) const;  };  } | 
