| 113 | } |
| 114 | |
| 115 | void setText(std::string_view text, size_t maxLength) |
| 116 | { |
| 117 | text = String::utf8TruncateCodePoints(text, maxLength); |
| 118 | _buffer = u8string{ text }; |
| 119 | _maxInputLength = maxLength; |
| 120 | SetTexboxSession(ContextStartTextInput(_buffer, maxLength)); |
| 121 | } |
| 122 | |
| 123 | void setCallback(std::function<void(std::string_view)> callback, std::function<void()> cancelCallback) |
| 124 | { |
no test coverage detected