From 38a5a1bfddd9beab8370970084514eba5cfd8486 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 26 Feb 2006 00:58:22 +0000 Subject: Translucency implementation for INDIC_ROUNDBOX and caret line. --- doc/ScintillaDoc.html | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 42314186a..e6aae3b73 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -130,6 +130,17 @@ system and the current screen mode. + + alpha + + Translucency is set using an alpha value. + Alpha ranges from 0 (SC_ALPHA_TRANSPARENT) which is completely transparent to + 255 (SC_ALPHA_OPAQUE) which is opaque. The value 256 (SC_ALPHA_NOALPHA) + is opaque and uses code that is not alpha-aware and may be faster. Not all platforms support + translucency and only some Scintilla features implement translucency. + The default alpha value for most features is SC_ALPHA_NOALPHA. + + <unused> @@ -2110,6 +2121,8 @@ struct TextToFind { SCI_GETCARETLINEVISIBLE
SCI_SETCARETLINEBACK(int colour)
SCI_GETCARETLINEBACK
+ SCI_SETCARETLINEBACKALPHA(int alpha)
+ SCI_GETCARETLINEBACKALPHA
SCI_SETCARETPERIOD(int milliseconds)
SCI_GETCARETPERIOD
SCI_SETCARETWIDTH(int pixels)
@@ -2146,13 +2159,20 @@ struct TextToFind { SCI_SETCARETLINEBACK(int colour)
SCI_GETCARETLINEBACK
+ SCI_SETCARETLINEBACKALPHA(int alpha)
+ SCI_GETCARETLINEBACKALPHA
You can choose to make the background colour of the line containing the caret different with these messages. To do this, set the desired background colour with SCI_SETCARETLINEBACK, then use SCI_SETCARETLINEVISIBLE(true) to enable the effect. You can cancel the effect with SCI_SETCARETLINEVISIBLE(false). The two SCI_GETCARET* functions return the state and the colour. This form of background colouring has highest priority when a line has markers that would otherwise change - the background colour.

+ the background colour. + The caret line may also be drawn translucently which allows other background colours to show + through. This is done by setting the alpha (translucency) value by calling + SCI_SETCARETLINEBACKALPHA. When the alpha is not SC_ALPHA_NOALPHA, + the caret line is drawn after all other features so will affect the colour of all other features. +

SCI_SETCARETPERIOD(int milliseconds)
SCI_GETCARETPERIOD
@@ -2940,6 +2960,15 @@ struct TextToFind { A rectangle around the text. + + + INDIC_ROUNDBOX + + 6 + + A rectangle with rounded corners around the text using translucent drawing with the + interior more transparent than the border. + -- cgit v1.2.3