3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/FontHandle.h"
7#include "mc/client/gui/FontSize.h"
8#include "mc/client/gui/TextAlignment.h"
9#include "mc/client/gui/controls/RenderableComponent.h"
10#include "mc/deps/core/math/Color.h"
11#include "mc/deps/core/utility/NonOwnerPointer.h"
26 ::ll::TypedStorage<8, 80, ::FontHandle> mFontHandle;
27 ::ll::TypedStorage<8, 80, ::FontHandle> mPrimaryFontHandle;
28 ::ll::TypedStorage<8, 80, ::FontHandle> mBackupFontHandle;
29 ::ll::TypedStorage<4, 4, float> mTextOffset;
30 ::ll::TypedStorage<4, 16, ::mce::Color> mColor;
31 ::ll::TypedStorage<4, 4, float> mLockedAlpha;
32 ::ll::TypedStorage<4, 16, ::mce::Color> mLockedColor;
33 ::ll::TypedStorage<4, 4, ::ui::FontSize> mFontSize;
34 ::ll::TypedStorage<4, 4, float> mFontScaleFactor;
35 ::ll::TypedStorage<4, 4, float> mLinePadding;
36 ::ll::TypedStorage<4, 4, ::ui::TextAlignment> mAlignment;
37 ::ll::TypedStorage<8, 32, ::std::string> mLabel;
38 ::ll::TypedStorage<8, 32, ::std::string> mLabelTTS;
39 ::ll::TypedStorage<4, 4, float> mCurrentTime;
40 ::ll::TypedStorage<4, 4, int> mLastNumChanges;
41 ::ll::TypedStorage<8, 8, uint64> mLastTextHash;
42 ::ll::TypedStorage<8, 8, uint64> mLastFilteredTextHash;
43 ::ll::TypedStorage<8, 32, ::std::string> mFilteredText;
44 ::ll::TypedStorage<8, 32, ::std::string> mMeasuredText;
45 ::ll::TypedStorage<8, 32, ::std::string> mRenderTextScratch;
46 ::ll::TypedStorage<8, 32, ::std::string> mCachedText;
47 ::ll::TypedStorage<8, 32, ::std::string> mLOCCachedText;
48 ::ll::TypedStorage<8, 32, ::std::string> mCachedLangCode;
49 ::ll::TypedStorage<8, 32, ::std::string> mCachedFontSources;
50 ::ll::TypedStorage<8, 32, ::std::string> mCachedTextTTS;
51 ::ll::TypedStorage<8, 24, ::std::vector<int>> mCaretOffsets;
52 ::ll::TypedStorage<4, 4, float> mCaretHeightOffset;
53 ::ll::TypedStorage<4, 4, float> mLineHeight;
54 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mNotifyControlsOnEllipses;
55 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::FontRepository const>> mFontRepository;
56 ::ll::TypedStorage<4, 12, ::std::optional<::glm::vec2>> mLastClickRelativePosition;
58 bool mShouldRenderCaret : 1;
60 bool mCaretBlinkVisible : 1;
62 bool mEnableProfanityFilter : 1;
63 bool mProfanityFilterToggleState : 1;
64 bool mBackupFontHandleOverridden : 1;
65 bool mNotifyEllipsesOnSiblings : 1;
66 bool mCachedTextDirty : 1;
76 virtual ~TextComponent() =
default;
78 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
80 virtual void reset() ;
82 virtual void render(::UIRenderContext& context);
84 virtual void updateUI(::UIMeasureStrategy
const& uiMeasureStrategy) ;
86 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
Definition FontRepository.h:5
Definition RenderableComponent.h:5
Definition TextComponent.h:5
MCAPI::std::string calculateUpdatedText()
MCAPI::std::string const & $getTextToSpeechComponentValue() const
MCAPI void $updateUI(::UIMeasureStrategy const &uiMeasureStrategy)
MCAPI int _getCaretPosition() const
MCAPI::std::string const & _getMeasuredText(::UIRenderContext &context)
MCAPI void * $ctor(::UIControl &owner, ::Bedrock::NotNullNonOwnerPtr<::FontRepository const > fontRepository)
MCAPI void setFontType(::std::string const &fontType)
MCAPI ::std::unique_ptr<::UIComponent > $clone(::UIControl &cloneOwner) const
MCAPI void setTextTTS(::std::string const &label)
Definition UIComponent.h:5
Definition UIMeasureStrategy.h:5
Definition UIRenderContext.h:5