From 8bc63ca16fc5b97d3c8bd384f32a2d279cf0d77b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 21 May 2006 02:53:47 +0000 Subject: Added translucency for selection and markers. --- include/Scintilla.h | 3 +++ include/Scintilla.iface | 9 +++++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 035ca04fa..5d2adb218 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -138,6 +138,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_MARKERPREVIOUS 2048 #define SCI_MARKERDEFINEPIXMAP 2049 #define SCI_MARKERADDSET 2466 +#define SCI_MARKERSETALPHA 2476 #define SC_MARGIN_SYMBOL 0 #define SC_MARGIN_NUMBER 1 #define SCI_SETMARGINTYPEN 2240 @@ -196,6 +197,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_STYLESETHOTSPOT 2409 #define SCI_SETSELFORE 2067 #define SCI_SETSELBACK 2068 +#define SCI_GETSELALPHA 2477 +#define SCI_SETSELALPHA 2478 #define SCI_SETCARETFORE 2069 #define SCI_ASSIGNCMDKEY 2070 #define SCI_CLEARCMDKEY 2071 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index d0f9f885d..9a0795f72 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -316,6 +316,9 @@ fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap) # Add a set of markers to a line. fun void MarkerAddSet=2466(int line, int set) +# Set the alpha used for a marker that is drawn in the text area, not the margin. +fun void MarkerSetAlpha=2476(int markerNumber, int alpha) + enu MarginType=SC_MARGIN_ val SC_MARGIN_SYMBOL=0 val SC_MARGIN_NUMBER=1 @@ -431,6 +434,12 @@ fun void SetSelFore=2067(bool useSetting, colour fore) # Set the background colour of the selection and whether to use this setting. fun void SetSelBack=2068(bool useSetting, colour back) +# Get the alpha of the selection. +get int GetSelAlpha=2477(,) + +# Set the alpha of the selection. +set void SetSelAlpha=2478(int alpha,) + # Set the foreground colour of the caret. set void SetCaretFore=2069(colour fore,) -- cgit v1.2.3