diff options
author | crupest <crupest@outlook.com> | 2020-07-07 00:31:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-07-07 00:31:11 +0800 |
commit | 3bf5b1fcf2315a1ce180ad69eb6bb1e57be37ca5 (patch) | |
tree | 722b5b5d808ce0ead4bc497dd910e081fa601656 /include/cru/platform/native/InputMethod.hpp | |
parent | cb241b7289abfc10111d3180def55ca1fbb2edb4 (diff) | |
download | cru-3bf5b1fcf2315a1ce180ad69eb6bb1e57be37ca5.tar.gz cru-3bf5b1fcf2315a1ce180ad69eb6bb1e57be37ca5.tar.bz2 cru-3bf5b1fcf2315a1ce180ad69eb6bb1e57be37ca5.zip |
...
Diffstat (limited to 'include/cru/platform/native/InputMethod.hpp')
-rw-r--r-- | include/cru/platform/native/InputMethod.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/cru/platform/native/InputMethod.hpp b/include/cru/platform/native/InputMethod.hpp index 1c5b287e..c975825f 100644 --- a/include/cru/platform/native/InputMethod.hpp +++ b/include/cru/platform/native/InputMethod.hpp @@ -23,6 +23,24 @@ struct CompositionText { TextRange selection; }; +// inline std::basic_ostream<char16_t>& operator<<( +// std::basic_ostream<char16_t>& stream, +// const CompositionText& composition_text) { +// stream << u"text: " << composition_text.text << u"\n" << u"clauses:\n"; +// for (int i = 0; i < static_cast<int>(composition_text.clauses.size()); i++) { +// const auto& clause = composition_text.clauses[i]; +// stream << u"\t" << i << u". start:" << clause.start << u" end:" +// << clause.end; +// if (clause.target) { +// stream << u" target"; +// } +// stream << u"\n"; +// } +// stream << u"selection: position:" << composition_text.selection.position +// << u" count:" << composition_text.selection.count; +// return stream; +// } + struct IInputMethodContext : virtual INativeResource { // Return true if you should draw composition text manually. Return false if // system will take care of that for you. |