From dcbc339899911e1a3a743de1c0c25d0c253dd39a Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 15 Aug 2024 19:02:46 +1000 Subject: Add SCI_STYLESETSTRETCH to support condensed and expanded text styles. --- call/ScintillaCall.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'call') 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(stretch)); +} + +FontStretch ScintillaCall::StyleGetStretch(int style) { + return static_cast(Call(Message::StyleGetStretch, style)); +} + void ScintillaCall::StyleSetInvisibleRepresentation(int style, const char *representation) { CallString(Message::StyleSetInvisibleRepresentation, style, representation); } -- cgit v1.2.3