aboutsummaryrefslogtreecommitdiffhomepage
path: root/call
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-08-15 19:02:46 +1000
committerNeil <nyamatongwe@gmail.com>2024-08-15 19:02:46 +1000
commitdcbc339899911e1a3a743de1c0c25d0c253dd39a (patch)
tree3d4fcd3405e7b4620476c36b0102031114bf65ad /call
parent6f51f5975920272f5f691d690107d15291a335f2 (diff)
downloadscintilla-mirror-dcbc339899911e1a3a743de1c0c25d0c253dd39a.tar.gz
Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.
Diffstat (limited to 'call')
-rw-r--r--call/ScintillaCall.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/call/ScintillaCall.cxx b/call/ScintillaCall.cxx
index 4508210db..64c9728e2 100644
--- a/call/ScintillaCall.cxx
+++ b/call/ScintillaCall.cxx
@@ -655,6 +655,14 @@ bool ScintillaCall::StyleGetCheckMonospaced(int style) {
return Call(Message::StyleGetCheckMonospaced, style);
}
+void ScintillaCall::StyleSetStretch(int style, Scintilla::FontStretch stretch) {
+ Call(Message::StyleSetStretch, style, static_cast<intptr_t>(stretch));
+}
+
+FontStretch ScintillaCall::StyleGetStretch(int style) {
+ return static_cast<Scintilla::FontStretch>(Call(Message::StyleGetStretch, style));
+}
+
void ScintillaCall::StyleSetInvisibleRepresentation(int style, const char *representation) {
CallString(Message::StyleSetInvisibleRepresentation, style, representation);
}