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 | c6959a0ab03e5942d815a77f6566ea8611173c06 (patch) | |
tree | d6a61e69dc04809d6c4a98e1b852977a88df4421 /src/ViewStyle.cxx | |
parent | 2365db5114cb4813853f334e3369c5ae72ac38c3 (diff) | |
download | scintilla-mirror-c6959a0ab03e5942d815a77f6566ea8611173c06.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) |