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