diff options
author | Neil <nyamatongwe@gmail.com> | 2022-07-22 20:32:53 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-07-22 20:32:53 +1000 |
commit | 6d53881b6c21e7824ba3c83ac175bb233f8ff2a8 (patch) | |
tree | d526fa4e7f5539d5abdeafe7a9af7820778af36c /src/ViewStyle.h | |
parent | e12f8f179666ed70d03c99039565ba63c45f7c7a (diff) | |
download | scintilla-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.h | 2 |
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 |