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&);
70 OnSelectionChanged(::cohtml::IInputProxy* proxy, ::cohtml::TextInput::Selection selection) ;
72 virtual void OnTextChanged(
73 ::cohtml::IInputProxy* proxy,
74 char const* addedChars,
76 char const* removedChars,
81 virtual void OnFocus(::cohtml::IInputProxy* proxy) ;
83 virtual void OnBlur(::cohtml::IInputProxy*) ;
113 MCNAPI
void setText(::std::string
const& text, ::std::optional<::TextBoxSelection>
const& selection);
129 char const* addedChars,
131 char const* removedChars,
Definition KeyboardManager.h:5
Definition TextInputHandler.h:7
MCAPI void _sendTextChangedEvent(::OreUI::InputUtils::TextInputResult const &inputResult)
MCAPI void imeEndComposition()
MCAPI void imeStartComposition()
MCAPI void $OnTextChanged(::cohtml::IInputProxy *proxy, char const *addedChars, uint addedCount, char const *removedChars, uint removedCount, uint index)
MCAPI void imeReplaceCompositionTextRange(::std::string const &replacement, int from, int to)
MCAPI TextInputHandler(::Bedrock::NotNullNonOwnerPtr<::GuiData > guiData, ::KeyboardManager &keyboardManager)
MCAPI void $OnFocus(::cohtml::IInputProxy *proxy)
MCAPI void $OnBlur(::cohtml::IInputProxy *)
MCAPI void * $ctor(::Bedrock::NotNullNonOwnerPtr<::GuiData > guiData, ::KeyboardManager &keyboardManager)
MCAPI void $OnSelectionChanged(::cohtml::IInputProxy *proxy, ::cohtml::TextInput::Selection selection)
MCAPI void _handleLostFocus()
MCAPI void handleNativeTextInput(::std::string_view text)
MCAPI void setText(::std::string const &text, ::std::optional<::TextBoxSelection > const &selection)
MCAPI void imeConfirmComposition(::std::string const &utf8Text)
static MCAPI void ** $vftable()
MCAPI void imeConfirmComposition()
MCAPI ::std::optional<::RectangleArea > getTextInputControlArea()
MCAPI::std::string getTextInputText()
MCAPI void imeUpdateCompositionText(::std::string const &utf8Text)
Definition TextInputResult.h:7
Definition TextInputHandler.h:15
Definition TextBoxSelection.h:5