From 6d53881b6c21e7824ba3c83ac175bb233f8ff2a8 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 22 Jul 2022 20:32:53 +1000 Subject: Move EditView::hideSelection to (inverted) SelectionAppearance::visible so that it can differ between screen and print. Add GetSelectionHidden to allow testing of HideSelection. --- src/ViewStyle.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ViewStyle.h') diff --git a/src/ViewStyle.h b/src/ViewStyle.h index ce6bd5642..c5ee232c3 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -46,6 +46,8 @@ inline std::optional OptionalColour(Scintilla::uptr_t wParam, Scinti } struct SelectionAppearance { + // Is the selection visible? + bool visible = true; // Whether to draw on base layer or over text Scintilla::Layer layer = Layer::Base; // Draw selection past line end characters up to right border -- cgit v1.2.3