diff options
author | Neil <nyamatongwe@gmail.com> | 2025-02-01 14:43:22 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-02-01 14:43:22 +1100 |
commit | f54fd2019dd648b29a80ec7429833ab546d3a428 (patch) | |
tree | 231bebba7db25fccf798340bdd908f28fd504c26 /call | |
parent | db6332fa9933244c45c44063afbdcccb462cfc03 (diff) | |
download | scintilla-mirror-f54fd2019dd648b29a80ec7429833ab546d3a428.tar.gz |
Serialize selection type and ranges with SCI_GETSELECTIONSERIALIZED and
SCI_SETSELECTIONSERIALIZED.
Diffstat (limited to 'call')
-rw-r--r-- | call/ScintillaCall.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/call/ScintillaCall.cxx b/call/ScintillaCall.cxx index 550adc710..57b050805 100644 --- a/call/ScintillaCall.cxx +++ b/call/ScintillaCall.cxx @@ -1267,6 +1267,18 @@ UndoSelectionHistoryOption ScintillaCall::UndoSelectionHistory() { return static_cast<Scintilla::UndoSelectionHistoryOption>(Call(Message::GetUndoSelectionHistory)); } +void ScintillaCall::SetSelectionSerialized(const char *selectionString) { + CallString(Message::SetSelectionSerialized, 0, selectionString); +} + +Position ScintillaCall::SelectionSerialized(char *selectionString) { + return CallPointer(Message::GetSelectionSerialized, 0, selectionString); +} + +std::string ScintillaCall::SelectionSerialized() { + return CallReturnString(Message::GetSelectionSerialized, 0); +} + Line ScintillaCall::FirstVisibleLine() { return Call(Message::GetFirstVisibleLine); } |