From 53bdcb15b3fd50dbc917e652953f1df4a5a5e493 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 22 Mar 2021 13:30:27 +1100 Subject: Implement more support values. --- doc/ScintillaDoc.html | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 529859a5c..f5b20d087 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -119,7 +119,7 @@

Scintilla Documentation

-

Last edited 16 March 2021 NH

+

Last edited 22 March 2021 NH

Scintilla 5 has moved the lexers from Scintilla into a new Lexilla project.
@@ -3886,6 +3886,7 @@ struct Sci_TextToFind { SCI_GRABFOCUS
SCI_SETFOCUS(bool focus)
SCI_GETFOCUS → bool
+ SCI_SUPPORTSFEATURE(int feature) → bool

To forward a message (WM_XXXX, WPARAM, LPARAM) to Scintilla, you can use @@ -4044,6 +4045,42 @@ struct Sci_TextToFind { that have complex focus requirements such as having their own window that gets the real focus but with the need to indicate that Scintilla has the logical focus.

+

SCI_SUPPORTSFEATURE(int feature) → bool
+ Different platforms support different features and SCI_SUPPORTSFEATURE + can be used to check which are currently available. + For example, on Win32, Direct2D supports drawing translucent lines but GDI does not so + SCI_SUPPORTSFEATURE(SC_SUPPORTS_TRANSLUCENT_STROKE) + will return 1 for Direct2D and 0 for GDI. Its possible that translucent line drawing will be implemented in a future + revision to the GDI platform layer or will be implmented on particular Windows versions. + This call allows applications to tailor their settings: perhaps displaying a box with translucent coloured fill on Direct2D but + a hollow box on GDI.

+

The features that can be queried are:

+ + + + + + + + + + + + + + + + + + + + + + + +
SC_SUPPORTS_LINE_DRAWS_FINALWhether drawing a line draws its final position. Only false on Win32 GDI.
SC_SUPPORTS_PIXEL_DIVISIONSAre logical pixels larger than physical pixels? Currently only true for macOS Cocoa with 'retina' displays. + When true, creating pixmaps at twice the resolution can produce clearer output with less blur.
SC_SUPPORTS_FRACTIONAL_STROKE_WIDTHCan lines be drawn with fractional widths like 1.5 or 0.5 pixels?
SC_SUPPORTS_TRANSLUCENT_STROKECan translucent lines, polygons, and ellipses, be drawn?
+

Brace highlighting

SCI_BRACEHIGHLIGHT(position posA, position posB)
-- cgit v1.2.3