diff options
author | Neil <nyamatongwe@gmail.com> | 2022-12-09 13:54:57 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-12-09 13:54:57 +1100 |
commit | 4bae79983a02af9c822a714f3dba48c52f347629 (patch) | |
tree | 62b06832e2549cdfcaa1808cf21e22397cc64985 /src/EditView.h | |
parent | 8895da569aa861143b5fd1dbf3bfc7de52594158 (diff) | |
download | scintilla-mirror-4bae79983a02af9c822a714f3dba48c52f347629.tar.gz |
Shorten code with ColourOptional alias for std::optional<ColourRGBA>.
Diffstat (limited to 'src/EditView.h')
-rw-r--r-- | src/EditView.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/EditView.h b/src/EditView.h index 832da9f15..33da5f294 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -136,7 +136,7 @@ public: void DrawIndentGuide(Surface *surface, Sci::Line lineVisible, int lineHeight, XYPOSITION start, PRectangle rcSegment, bool highlight); void DrawEOL(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, PRectangle rcLine, Sci::Line line, Sci::Position lineEnd, int xStart, int subLine, XYACCUMULATOR subLineStart, - std::optional<ColourRGBA> background); + ColourOptional background); void DrawFoldDisplayText(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, Sci::Line line, int xStart, PRectangle rcLine, int subLine, XYACCUMULATOR subLineStart, DrawPhase phase); void DrawEOLAnnotationText(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, @@ -147,10 +147,10 @@ public: int xStart, PRectangle rcLine, int subLine) const; void DrawBackground(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, PRectangle rcLine, Range lineRange, Sci::Position posLineStart, int xStart, - int subLine, std::optional<ColourRGBA> background) const; + int subLine, ColourOptional background) const; void DrawForeground(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, Sci::Line lineVisible, PRectangle rcLine, Range lineRange, Sci::Position posLineStart, int xStart, - int subLine, std::optional<ColourRGBA> background); + int subLine, ColourOptional background); void DrawIndentGuidesOverEmpty(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, Sci::Line line, Sci::Line lineVisible, PRectangle rcLine, int xStart, int subLine); void DrawLine(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, Sci::Line line, |