From 53ca05457a1d7306defd98ee4a21eb18e6a9be8d Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 2 Feb 2022 14:01:29 +1100 Subject: Add Supports::ThreadSafeMeasureWidths for platforms to indicate if they support concurrent calls to MeasureWidths. --- include/Scintilla.h | 1 + include/Scintilla.iface | 1 + include/ScintillaTypes.h | 1 + 3 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index b46e886b6..7ab0e3560 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -1101,6 +1101,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP #define SC_SUPPORTS_FRACTIONAL_STROKE_WIDTH 2 #define SC_SUPPORTS_TRANSLUCENT_STROKE 3 #define SC_SUPPORTS_PIXEL_MODIFICATION 4 +#define SC_SUPPORTS_THREAD_SAFE_MEASURE_WIDTHS 5 #define SCI_SUPPORTSFEATURE 2750 #define SC_LINECHARACTERINDEX_NONE 0 #define SC_LINECHARACTERINDEX_UTF32 1 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index f2ef2d33e..a98a310ab 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -3040,6 +3040,7 @@ val SC_SUPPORTS_PIXEL_DIVISIONS=1 val SC_SUPPORTS_FRACTIONAL_STROKE_WIDTH=2 val SC_SUPPORTS_TRANSLUCENT_STROKE=3 val SC_SUPPORTS_PIXEL_MODIFICATION=4 +val SC_SUPPORTS_THREAD_SAFE_MEASURE_WIDTHS=5 # Get whether a feature is supported get bool SupportsFeature=2750(Supports feature,) diff --git a/include/ScintillaTypes.h b/include/ScintillaTypes.h index 917878474..fe4b06032 100644 --- a/include/ScintillaTypes.h +++ b/include/ScintillaTypes.h @@ -507,6 +507,7 @@ enum class Supports { FractionalStrokeWidth = 2, TranslucentStroke = 3, PixelModification = 4, + ThreadSafeMeasureWidths = 5, }; enum class LineCharacterIndexType { -- cgit v1.2.3