3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/input/RectangleArea.h"
8#include "mc/deps/input/TextBoxSelection.h"
9#include "mc/external/gameface/cohtml/ITextInputHandler.h"
17namespace cohtml::TextInput {
struct Selection; }
34 ::ll::TypedStorage<8, 32, ::std::string> mCurrentText;
35 ::ll::TypedStorage<4, 16, ::RectangleArea> mCaretArea;
36 ::ll::TypedStorage<4, 16, ::RectangleArea> mControlArea;
37 ::ll::TypedStorage<4, 12, ::TextBoxSelection> mSelection;
38 ::ll::TypedStorage<4, 4, int const> mMaxLength;
39 ::ll::TypedStorage<1, 1, bool const> mIsMultiline;
43 using OnTextChangedCallback = ::std::function<void(::OreUI::TextInputResult)>;
48 ::ll::TypedStorage<8, 8, ::KeyboardManager&> mKeyboardManager;
49 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::GuiData>> mGuiData;
50 ::ll::TypedStorage<8, 64, ::std::function<void(::OreUI::TextInputResult)>> mOnTextChangedCallback;
51 ::ll::TypedStorage<1, 1, bool> mReportTextInputChanges;
52 ::ll::TypedStorage<8, 96, ::std::optional<::OreUI::TextInputHandler::TextInputState>> mTextInputState;
57 TextInputHandler& operator=(TextInputHandler
const&);
58 TextInputHandler(TextInputHandler
const&);
65 OnSelectionChanged(::cohtml::IInputProxy* proxy, ::cohtml::TextInput::Selection selection) ;
67 virtual void OnTextChanged(
68 ::cohtml::IInputProxy* proxy,
69 char const* addedChars,
71 char const* removedChars,
76 virtual void OnFocus(::cohtml::IInputProxy* proxy) ;
78 virtual void OnBlur(::cohtml::IInputProxy*) ;
80 virtual ~TextInputHandler() ;
86 MCAPI
void _updateFromInputProxy(::cohtml::IInputProxy& proxy);
88 MCAPI ::std::optional<::OreUI::TextInputResult>
89 calculateChange(::std::string
const& currentInput, ::std::string
const& newInput)
const;
91 MCAPI ::std::string getTextInputText();
103 MCAPI
void $OnSelectionChanged(::cohtml::IInputProxy* proxy, ::cohtml::TextInput::Selection selection);
105 MCAPI
void $OnTextChanged(
106 ::cohtml::IInputProxy* proxy,
107 char const* addedChars,
109 char const* removedChars,
114 MCAPI
void $OnFocus(::cohtml::IInputProxy* proxy);
116 MCAPI
void $OnBlur(::cohtml::IInputProxy*);
Definition KeyboardManager.h:5
Definition TextInputHandler.h:7
static MCAPI void ** $vftable()
Definition TextInputHandler.h:15
Definition TextInputResult.h:7