aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-07-22 20:32:53 +1000
committerNeil <nyamatongwe@gmail.com>2022-07-22 20:32:53 +1000
commit6d53881b6c21e7824ba3c83ac175bb233f8ff2a8 (patch)
treed526fa4e7f5539d5abdeafe7a9af7820778af36c /src/ViewStyle.h
parente12f8f179666ed70d03c99039565ba63c45f7c7a (diff)
downloadscintilla-mirror-6d53881b6c21e7824ba3c83ac175bb233f8ff2a8.tar.gz
Move EditView::hideSelection to (inverted) SelectionAppearance::visible so that
it can differ between screen and print. Add GetSelectionHidden to allow testing of HideSelection.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r--src/ViewStyle.h2
1 files changed, 2 insertions, 0 deletions
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<ColourRGBA> 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