3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/input/TextRange.h"
16 enum class CaretUpdate : uchar {
25 enum class TextEditAction : uchar {
38 ::ll::TypedStorage<1, 1, bool> mIsEnabled;
39 ::ll::TypedStorage<1, 1, bool> mCtrlDown;
40 ::ll::TypedStorage<8, 32, ::std::string> mCurrentUtf8Text;
41 ::ll::TypedStorage<4, 4, int> mCaret;
42 ::ll::TypedStorage<1, 1, bool> mHighlightSelection;
43 ::ll::TypedStorage<4, 4, int> mMaxLength;
44 ::ll::TypedStorage<4, 8, ::TextRange> mSelection;
45 ::ll::TypedStorage<8, 8, ::IKeyboardProxy*> mKeyboard;
46 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IKeyboardProxy>> mKeyboardProxy;
52 MCAPI
void _feedDelete(::std::string_view text)
const;
54 MCAPI
void _feedDiff(::std::string_view oldText, ::std::string_view newText)
const;
56 MCAPI
void _feedInsert(::std::string_view text)
const;
58 MCAPI
void _onBackspace();
62 MCAPI
void _onPaste(::std::wstring
const& cbText);
64 MCAPI
void _replaceSelection(::std::string_view replacementUtf8Text);
66 MCAPI
void _setText(::std::string_view newUtf8Text);
68 MCAPI
void feedAction(::TextEditContext::TextEditAction action);
70 MCAPI
void feedCaretUpdate(::TextEditContext::CaretUpdate caretMovement);
72 MCAPI
void feedText(::std::string_view utf8Text);
74 MCAPI ::TextRange getSelection()
const;
76 MCFOLD ::std::string
const getText()
const;
78 MCAPI
void setCaretLocation(
int location);
80 MCAPI
void setSelection(::TextRange range);
82 MCAPI ~TextEditContext();
Definition IKeyboardProxy.h:5
Definition TextEditContext.h:5