From 91a0a5c9be59308be001bbc89c0aead0f3602494 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 14 May 2021 13:33:11 +1000 Subject: Add SCI_MARKERSETLAYER to define layer on which to draw content area markers. This replaces the use of SC_ALPHA_NOALPHA for markers. --- src/LineMarker.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/LineMarker.cxx') 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(*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(*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(textForm); markType = SC_MARK_PIXMAP; -- cgit v1.2.3