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 MCNAPI explicit TextEditComponent(::
UIControl& owner);
92 MCAPI
void handleFocusSet(
bool focused);
102 MCAPI
bool trySetText(::
std::
string text);
118 MCNAPI
void $reload(::UIComponent const& rhs);
Definition RectangleArea.h:5
Definition ScreenInputContext.h:5
Definition TextEditComponent.h:5
MCAPI::RectangleArea getTextArea() const
MCAPI::std::string const & $getTextToSpeechComponentValue() const
MCAPI ::std::unique_ptr<::UIComponent > $clone(::UIControl &cloneOwner) const
MCAPI void selectControl()
MCAPI::RectangleArea getMinTextArea() const
MCAPI void _hidePlaceHolderControl()
MCAPI void setText(::std::string const &text)
MCAPI::std::string getText() const
MCAPI void registerPropertyChangedNotifications()
MCAPI void _showPlaceHolderControl()
MCAPI void $reload(::UIComponent const &rhs)
MCAPI::TextCharEventResult handleTextCharEvent(::VisualTree &visualTree, ::std::string const &inputUtf8)
MCAPI void * $ctor(::UIControl &owner)
MCAPI void $onVisibilityChanged(bool visible)
MCAPI void updateCaretBlink(float dt)
MCAPI bool _textFitsInControl(::std::string const &text) const
MCAPI void deselectControl()
MCAPI::ComponentReceiveActionType $receive(::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5