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"
28 ::ll::TypedStorage<4, 4, uint> mMaxLength;
29 ::ll::TypedStorage<1, 1, bool> mConstrainToRect;
30 ::ll::TypedStorage<1, 1, bool> mEnabledNewline;
31 ::ll::TypedStorage<4, 4, ::TextType> mTextType;
32 ::ll::TypedStorage<8, 80, ::FontHandle> mFontHandle;
33 ::ll::TypedStorage<4, 16, ::mce::Color> mPlaceHolderHoverColor;
34 ::ll::TypedStorage<4, 16, ::mce::Color> mPlaceHolderDefaultColor;
35 ::ll::TypedStorage<1, 1, bool> mHover;
36 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mVirtualKeyboardBufferControl;
37 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mLabelControl;
38 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mPlaceHolderControl;
39 ::ll::TypedStorage<8, 32, ::std::string> mGridCollectionName;
40 ::ll::TypedStorage<4, 4, uint> mTextEditComponentId;
41 ::ll::TypedStorage<1, 1, bool> mCanBeDeselected;
42 ::ll::TypedStorage<1, 1, bool> mSelected;
43 ::ll::TypedStorage<1, 1, bool> mFocused;
44 ::ll::TypedStorage<1, 1, bool> mAlwaysListening;
54 virtual ~TextEditComponent() ;
56 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
58 virtual void reload(::UIComponent
const& rhs) ;
60 virtual void reset() ;
62 virtual ::ComponentReceiveActionType receive(
63 ::VisualTree& screenEvent,
64 ::ScreenInputContext&,
65 ::UIAnimationController&,
69 virtual void onVisibilityChanged(
bool visible) ;
71 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
77 MCAPI explicit TextEditComponent(::UIControl& owner);
79 MCAPI
void _click(
float x,
float y) const;
81 MCAPI
void _hidePlaceHolderControl();
83 MCAPI
void _removeHoverTextColor();
85 MCAPI
void _setHoverTextColor();
87 MCAPI
void _showPlaceHolderControl();
89 MCAPI
bool _textFitsInControl(::std::
string const& text) const;
91 MCAPI
bool canBeDeselected() const;
93 MCAPI
void deselectControl();
95 MCAPI
bool getAlwaysListening() const;
97 MCAPI
float getCaretHeightOffset() const;
99 MCAPI
int getCollectionIndex() const;
101 MCAPI
bool getEnabledNewline() const;
103 MCAPI ::FontHandle getFontHandle() const;
105 MCAPI ::UIPropertyBag* getLabelPropertyBag() const;
107 MCFOLD
int getMaxLength() const;
109 MCAPI ::RectangleArea getMinTextArea() const;
111 MCAPI ::std::
string getText() const;
113 MCAPI ::RectangleArea getTextArea() const;
115 MCAPI uint getTextEditComponentId() const;
117 MCAPI
void handleFocusGained();
119 MCAPI
void handleFocusLost();
121 MCAPI
void handleFocusSet(
bool focused);
123 MCAPI ::TextCharEventResult handleTextCharEvent(::VisualTree& visualTree, ::std::
string const& inputUtf8);
125 MCAPI
bool isNumbersOnly() const;
127 MCAPI
void registerPropertyChangedNotifications();
129 MCAPI
void selectControl();
131 MCAPI
void setCanBeDeselected(
bool deselected);
133 MCAPI
void setText(::std::
string const& text);
135 MCAPI
bool trySetText(::std::
string text);
137 MCAPI
void updateCaretBlink(
float dt);
143 MCAPI
void* $ctor(::UIControl& owner);
155 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
157 MCAPI
void $reload(::UIComponent const& rhs);
161 MCAPI ::ComponentReceiveActionType
162 $receive(::VisualTree& screenEvent, ::ScreenInputContext&, ::UIAnimationController&, ::ScreenEvent const&);
164 MCAPI
void $onVisibilityChanged(
bool visible);
166 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 UIPropertyBag.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5