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 _onBackspace();
56 MCAPI
void _setText(::std::string_view newUtf8Text);
58 MCAPI
void feedAction(::TextEditContext::TextEditAction action);
60 MCAPI
void feedCaretUpdate(::TextEditContext::CaretUpdate caretMovement);
62 MCAPI
void feedText(::std::string_view utf8Text);
64 MCFOLD ::std::string
const getText()
const;
Definition IKeyboardProxy.h:5
Definition TextEditContext.h:5