aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-02-02 14:01:29 +1100
committerNeil <nyamatongwe@gmail.com>2022-02-02 14:01:29 +1100
commit53ca05457a1d7306defd98ee4a21eb18e6a9be8d (patch)
tree9f5d39af5c1604d8a84ef9f4c40e5af7a0215f64 /include
parentb7345886dca4996d630a267f56fe2d7ce01fc88a (diff)
downloadscintilla-mirror-53ca05457a1d7306defd98ee4a21eb18e6a9be8d.tar.gz
Add Supports::ThreadSafeMeasureWidths for platforms to indicate if they support
concurrent calls to MeasureWidths.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface1
-rw-r--r--include/ScintillaTypes.h1
3 files changed, 3 insertions, 0 deletions
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 {