diff options
author | Neil <nyamatongwe@gmail.com> | 2014-07-17 08:59:39 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-07-17 08:59:39 +1000 |
commit | 6ab16baa81e69175e63d702cb7bd63cfe8f5982d (patch) | |
tree | 1741775f4d85b18cc778f508479c926d199932f9 /src/ViewStyle.cxx | |
parent | 2d8ad147aeb8db6a107efbb3f0fe621a53e04dad (diff) | |
download | scintilla-mirror-6ab16baa81e69175e63d702cb7bd63cfe8f5982d.tar.gz |
Refactored Drawline into separate methods for each aspect of drawing.
Standardised order of arguments to drawing methods.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 2983bb0c0..e67c02d6d 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -470,6 +470,14 @@ ColourOptional ViewStyle::Background(int marksOfLine, bool caretActive, bool lin return background; } +bool ViewStyle::SelectionBackgroundDrawn() const { + return selColours.back.isSet && + ((selAlpha == SC_ALPHA_NOALPHA) || (selAdditionalAlpha == SC_ALPHA_NOALPHA)); +} + +bool ViewStyle::WhitespaceBackgroundDrawn() const { + return (viewWhitespace != wsInvisible) && (whitespaceColours.back.isSet); +} ColourDesired ViewStyle::WrapColour() const { if (whitespaceColours.fore.isSet) |