3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/FontHandle.h"
7#include "mc/client/gui/controls/ComponentReceiveActionType.h"
8#include "mc/client/gui/controls/TextCharEventResult.h"
9#include "mc/client/gui/controls/TextType.h"
10#include "mc/client/gui/controls/UIComponent.h"
11#include "mc/deps/core/math/Color.h"
27 ::ll::TypedStorage<4, 4, uint> mMaxLength;
28 ::ll::TypedStorage<1, 1, bool> mConstrainToRect;
29 ::ll::TypedStorage<1, 1, bool> mEnabledNewline;
30 ::ll::TypedStorage<4, 4, ::TextType> mTextType;
31 ::ll::TypedStorage<8, 80, ::FontHandle> mFontHandle;
32 ::ll::TypedStorage<4, 16, ::mce::Color> mPlaceHolderHoverColor;
33 ::ll::TypedStorage<4, 16, ::mce::Color> mPlaceHolderDefaultColor;
34 ::ll::TypedStorage<1, 1, bool> mHover;
35 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mVirtualKeyboardBufferControl;
36 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mLabelControl;
37 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mPlaceHolderControl;
38 ::ll::TypedStorage<8, 32, ::std::string> mGridCollectionName;
39 ::ll::TypedStorage<4, 4, uint> mTextEditComponentId;
40 ::ll::TypedStorage<1, 1, bool> mCanBeDeselected;
41 ::ll::TypedStorage<1, 1, bool> mSelected;
42 ::ll::TypedStorage<1, 1, bool> mFocused;
43 ::ll::TypedStorage<1, 1, bool> mAlwaysListening;
53 virtual ~TextEditComponent() =
default;
55 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
57 virtual void reload(::UIComponent
const& rhs) ;
59 virtual void reset() ;
61 virtual ::ComponentReceiveActionType receive(
62 ::VisualTree& visualTree,
63 ::ScreenInputContext& context,
64 ::UIAnimationController& animationController,
65 ::ScreenEvent
const& screenEvent
68 virtual void onVisibilityChanged(
bool visible) ;
70 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
76 MCAPI explicit TextEditComponent(::UIControl& owner);
78 MCAPI
void _click(
float x,
float y) const;
80 MCAPI
void _hidePlaceHolderControl();
82 MCAPI
void _showPlaceHolderControl();
84 MCAPI
bool _textFitsInControl(::std::
string const& text) const;
86 MCAPI
void deselectControl();
88 MCAPI ::RectangleArea getMinTextArea() const;
90 MCAPI ::std::
string getText() const;
92 MCAPI ::RectangleArea getTextArea() const;
94 MCAPI
void handleFocusSet(
bool focused);
96 MCAPI ::TextCharEventResult handleTextCharEvent(::VisualTree& visualTree, ::std::
string const& inputUtf8);
98 MCAPI
void registerPropertyChangedNotifications();
100 MCAPI
void selectControl();
102 MCAPI
void setText(::std::
string const& text);
104 MCAPI
bool trySetText(::std::
string text);
110 MCAPI
void* $ctor(::UIControl& owner);
116 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
118 MCAPI
void $reload(::UIComponent const& rhs);
122 MCAPI ::ComponentReceiveActionType $receive(
123 ::VisualTree& visualTree,
124 ::ScreenInputContext& context,
125 ::UIAnimationController& animationController,
126 ::ScreenEvent const& screenEvent
129 MCAPI
void $onVisibilityChanged(
bool visible);
131 MCAPI ::std::
string const& $getTextToSpeechComponentValue() const;
Definition RectangleArea.h:5
Definition ScreenInputContext.h:5
Definition TextEditComponent.h:5
static MCAPI void ** $vftable()
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5