diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-14 13:33:11 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-14 13:33:11 +1000 |
commit | 91a0a5c9be59308be001bbc89c0aead0f3602494 (patch) | |
tree | 43c70147bfce95a4b3fc8d5397faed70cafcffee /src/LineMarker.cxx | |
parent | 2feaeaf738851055a79ffcfb9027a3637610faca (diff) | |
download | scintilla-mirror-91a0a5c9be59308be001bbc89c0aead0f3602494.tar.gz |
Add SCI_MARKERSETLAYER to define layer on which to draw content area markers.
This replaces the use of SC_ALPHA_NOALPHA for markers.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r-- | src/LineMarker.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index ed9c1ce7a..a3ab16b1d 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -37,6 +37,7 @@ LineMarker::LineMarker(const LineMarker &other) { back = other.back; backSelected = other.backSelected; strokeWidth = other.strokeWidth; + layer = other.layer; alpha = other.alpha; if (other.pxpm) pxpm = std::make_unique<XPM>(*other.pxpm); @@ -57,6 +58,7 @@ LineMarker &LineMarker::operator=(const LineMarker &other) { back = other.back; backSelected = other.backSelected; strokeWidth = other.strokeWidth; + layer = other.layer; alpha = other.alpha; if (other.pxpm) pxpm = std::make_unique<XPM>(*other.pxpm); @@ -71,6 +73,10 @@ LineMarker &LineMarker::operator=(const LineMarker &other) { return *this; } +ColourAlpha LineMarker::BackWithAlpha() const noexcept { + return ColourAlpha(back, alpha); +} + void LineMarker::SetXPM(const char *textForm) { pxpm = std::make_unique<XPM>(textForm); markType = SC_MARK_PIXMAP; |