3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/input/TextRange.h"
16 enum class CaretUpdate : uchar {};
18 enum class TextEditAction : uchar {};
23 ::ll::TypedStorage<1, 1, bool> mIsEnabled;
24 ::ll::TypedStorage<1, 1, bool> mCtrlDown;
25 ::ll::TypedStorage<8, 32, ::std::string> mCurrentUtf8Text;
26 ::ll::TypedStorage<4, 4, int> mCaret;
27 ::ll::TypedStorage<1, 1, bool> mHighlightSelection;
28 ::ll::TypedStorage<4, 4, int> mMaxLength;
29 ::ll::TypedStorage<4, 8, ::TextRange> mSelection;
30 ::ll::TypedStorage<8, 8, ::IKeyboardProxy*> mKeyboard;
31 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IKeyboardProxy>> mKeyboardProxy;
37 MCAPI
void _feedDiff(::std::string_view oldText, ::std::string_view newText)
const;
39 MCAPI
void _feedInsert(::std::string_view text)
const;
43 MCAPI
void _onPaste(::std::wstring
const& cbText);
45 MCAPI
void _replaceSelection(::std::string_view replacementUtf8Text);
47 MCAPI
void _setText(::std::string_view newUtf8Text);
49 MCAPI
void feedAction(::TextEditContext::TextEditAction action);
51 MCAPI
void feedCaretUpdate(::TextEditContext::CaretUpdate caretMovement);
53 MCAPI
void feedText(::std::string_view utf8Text);
55 MCAPI
void setCaretLocation(
int location);
Definition IKeyboardProxy.h:5
Definition TextEditContext.h:5