3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/oreui/input/GamefaceImeComposer.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/deps/input/RectangleArea.h"
9#include "mc/external/gameface/cohtml/ITextInputHandler.h"
18namespace cohtml {
class View; }
19namespace cohtml::TextInput {
struct Selection; }
36 ::ll::TypedStorage<8, 8, ::cohtml::IInputProxy&> mInputProxy;
37 ::ll::TypedStorage<8, 56, ::std::optional<::OreUI::GamefaceImeComposer>> mImeComposer;
38 ::ll::TypedStorage<4, 20, ::std::optional<::RectangleArea>> mCaretArea;
39 ::ll::TypedStorage<4, 4, int const> mMaxLength;
40 ::ll::TypedStorage<1, 1, bool const> mIsMultiline;
41 ::ll::TypedStorage<1, 1, bool> mIgnoreTextCallbacks;
46 TextInputState& operator=(TextInputState
const&);
47 TextInputState(TextInputState
const&);
54 ::ll::TypedStorage<8, 8, ::KeyboardManager&> mKeyboardManager;
55 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::GuiData>> mGuiData;
56 ::ll::TypedStorage<8, 8, ::cohtml::View*> mView;
57 ::ll::TypedStorage<8, 104, ::std::optional<::OreUI::TextInputHandler::TextInputState>> mTextInputState;
62 TextInputHandler& operator=(TextInputHandler
const&);
63 TextInputHandler(TextInputHandler
const&);
69 virtual void OnSelectionChanged(::cohtml::IInputProxy*, ::cohtml::TextInput::Selection) ;
71 virtual void OnTextChanged(
72 ::cohtml::IInputProxy* addedChars,
73 char const* addedCount,
75 char const* removedCount,
80 virtual void OnFocus(::cohtml::IInputProxy* proxy) ;
82 virtual void OnBlur(::cohtml::IInputProxy*) ;
88 MCAPI TextInputHandler(::Bedrock::NotNullNonOwnerPtr<::GuiData> guiData, ::KeyboardManager& keyboardManager);
90 MCAPI
void _handleLostFocus();
92 MCAPI
void _sendTextChangedEvent(::OreUI::InputUtils::TextInputResult
const& inputResult);
94 MCAPI ::std::optional<::RectangleArea> getTextInputControlArea();
96 MCAPI ::std::string getTextInputText();
98 MCAPI
void handleNativeTextInput(::std::string_view text);
100 MCAPI
void imeConfirmComposition();
102 MCAPI
void imeConfirmComposition(::std::string
const& utf8Text);
104 MCAPI
void imeEndComposition();
106 MCAPI
void imeReplaceCompositionTextRange(::std::string
const& replacement,
int from,
int to);
108 MCAPI
void imeStartComposition();
110 MCAPI
void imeUpdateCompositionText(::std::string
const& utf8Text);
112 MCAPI
void setText(::std::string
const& text, ::std::optional<::TextBoxSelection>
const& selection);
118 MCAPI
void* $ctor(::Bedrock::NotNullNonOwnerPtr<::GuiData> guiData, ::KeyboardManager& keyboardManager);
124 MCAPI
void $OnSelectionChanged(::cohtml::IInputProxy*, ::cohtml::TextInput::Selection);
126 MCAPI
void $OnTextChanged(
127 ::cohtml::IInputProxy* addedChars,
128 char const* addedCount,
130 char const* removedCount,
135 MCAPI
void $OnFocus(::cohtml::IInputProxy* proxy);
137 MCAPI
void $OnBlur(::cohtml::IInputProxy*);
Definition KeyboardManager.h:5
Definition TextInputHandler.h:7
static MCAPI void ** $vftable()
Definition TextInputResult.h:7
Definition TextInputHandler.h:15
Definition TextBoxSelection.h:5