From 8497317864816c0f7a4b5baf3229c7a3336f55d8 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 10 May 2021 17:40:27 +1000 Subject: Change the way that selections and carets are drawn to use the element APIs. --- include/Scintilla.iface | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include/Scintilla.iface') diff --git a/include/Scintilla.iface b/include/Scintilla.iface index faf846dc8..ac5a72346 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -676,6 +676,17 @@ val SC_ELEMENT_LIST=0 val SC_ELEMENT_LIST_BACK=1 val SC_ELEMENT_LIST_SELECTED=2 val SC_ELEMENT_LIST_SELECTED_BACK=3 +val SC_ELEMENT_SELECTION_TEXT=10 +val SC_ELEMENT_SELECTION_BACK=11 +val SC_ELEMENT_SELECTION_ADDITIONAL_TEXT=12 +val SC_ELEMENT_SELECTION_ADDITIONAL_BACK=13 +val SC_ELEMENT_SELECTION_SECONDARY_TEXT=14 +val SC_ELEMENT_SELECTION_SECONDARY_BACK=15 +val SC_ELEMENT_SELECTION_NO_FOCUS_TEXT=16 +val SC_ELEMENT_SELECTION_NO_FOCUS_BACK=17 +val SC_ELEMENT_CARET=40 +val SC_ELEMENT_CARET_ADDITIONAL=41 +val SC_ELEMENT_CARET_SECONDARY=42 # Set the colour of an element. Translucency (alpha) may or may not be significant # and this may depend on the platform. The alpha byte should commonly be 0xff for opaque. @@ -712,6 +723,16 @@ get bool GetSelEOLFilled=2479(,) # Set the selection to have its end of line filled or not. set void SetSelEOLFilled=2480(bool filled,) +enu Layer=SC_LAYER_ +val SC_LAYER_BASE=0 +val SC_LAYER_OVER_TEXT=10 + +# Get the layer for drawing selections +get Layer GetSelectionLayer=2762(,) + +# Set the layer for drawing selections: either opaquely on base layer or translucently over text +set void SetSelectionLayer=2763(Layer layer,) + # Set the foreground colour of the caret. set void SetCaretFore=2069(colour fore,) -- cgit v1.2.3