aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-06-26 13:06:24 +1000
committerNeil <nyamatongwe@gmail.com>2014-06-26 13:06:24 +1000
commit4354f177a6349bd70424f2b8068f377a3118b269 (patch)
tree89b89fc80a0f5b4c9d8d2e86593e8c1b0f474064 /src/Editor.h
parent7ce145146a3815791ab4f10e198ae10293afdbeb (diff)
downloadscintilla-mirror-4354f177a6349bd70424f2b8068f377a3118b269.tar.gz
Move calculation of line background colour to ViewStyle and represent as a
ColourOptional to tightly bind the value with whether it is set.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h
index f26f1c447..7a84690af 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -437,12 +437,12 @@ protected: // ScintillaBase subclass needs access to much of Editor
void LayoutLine(int line, Surface *surface, const ViewStyle &vstyle, LineLayout *ll,
int width=LineLayout::wrapWidthInfinite);
ColourDesired SelectionBackground(const ViewStyle &vsDraw, bool main) const;
- ColourDesired TextBackground(const ViewStyle &vsDraw, bool overrideBackground, ColourDesired background, int inSelection, bool inHotspot, int styleMain, int i, LineLayout *ll) const;
+ ColourDesired TextBackground(const ViewStyle &vsDraw, ColourOptional background, int inSelection, bool inHotspot, int styleMain, int i, LineLayout *ll) const;
void DrawIndentGuide(Surface *surface, int lineVisible, int lineHeight, int start, PRectangle rcSegment, bool highlight);
static void DrawWrapMarker(Surface *surface, PRectangle rcPlace, bool isEndMarker, ColourDesired wrapColour);
void DrawEOL(Surface *surface, const ViewStyle &vsDraw, PRectangle rcLine, LineLayout *ll,
int line, int lineEnd, int xStart, int subLine, XYACCUMULATOR subLineStart,
- bool overrideBackground, ColourDesired background,
+ ColourOptional background,
bool drawWrapMark, ColourDesired wrapColour);
static void DrawIndicator(int indicNum, int startPos, int endPos, Surface *surface, const ViewStyle &vsDraw,
int xStart, PRectangle rcLine, LineLayout *ll, int subLine);