From c02f75227ef151af1b283e4436d06149e69679a7 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 27 Mar 2021 08:48:56 +1100 Subject: Add API for setting stroke width of indicators. --- doc/ScintillaDoc.html | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index e869d069e..ea1484501 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -119,7 +119,7 @@

Scintilla Documentation

-

Last edited 22 March 2021 NH

+

Last edited 27 March 2021 NH

Scintilla 5 has moved the lexers from Scintilla into a new Lexilla project.
@@ -4657,6 +4657,8 @@ struct Sci_TextToFind { SCI_INDICSETFORE(int indicator, colour fore)
SCI_INDICGETFORE(int indicator) → colour
+ SCI_INDICSETSTROKEWIDTH(int indicator, int hundredths)
+ SCI_INDICGETSTROKEWIDTH(int indicator) → int
SCI_INDICSETALPHA(int indicator, alpha alpha)
SCI_INDICGETALPHA(int indicator) → int
SCI_INDICSETOUTLINEALPHA(int indicator, alpha alpha)
@@ -4926,6 +4928,25 @@ struct Sci_TextToFind { SCI_INDICSETFORE(1, 0xff0000); (light blue)
SCI_INDICSETFORE(2, 0x0000ff); (light red)

+ SCI_INDICSETSTROKEWIDTH(int indicator, int hundredths)
+ SCI_INDICGETSTROKEWIDTH(int indicator) → int
+

SCI_INDICSETSTROKEWIDTH(int indicator, int hundredths)
+ SCI_INDICGETSTROKEWIDTH(int indicator) → int
+ These two messages set and get the stroke width used to draw an indicator in hundredths of a pixel. + The default value is 100 indicating a width of one pixel. + Some indicator styles do not support setting stroke width, generally where it makes no sense (INDIC_POINT) or + wasn't simple (INDIC_SQUIGGLEPIXMAP). + The indicators supporting stroke width are: + INDIC_PLAIN, INDIC_SQUIGGLE, INDIC_TT, INDIC_DIAGONAL, + INDIC_STRIKE, INDIC_BOX, INDIC_ROUNDBOX, INDIC_STRAIGHTBOX, + INDIC_FULLBOX, INDIC_DASH, INDIC_DOTS, INDIC_SQUIGGLELOW. +

+

Fractional pixel widths are possible such as 50 for half a pixel wide. + On many systems a half pixel value will appear as a fainter line but it allows drawing very thin lines on systems with multiple physical pixels + per logical pixel. + Half (logical) pixel lines are available on macOS with 'retina' displays, + see SC_SUPPORTS_PIXEL_DIVISIONS.

+

SCI_INDICSETALPHA(int indicator, alpha alpha)
SCI_INDICGETALPHA(int indicator) → int
These two messages set and get the alpha transparency used for drawing the -- cgit v1.2.3