Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TextComponent Class Reference
Inheritance diagram for TextComponent:

Public Member Functions

virtual ::std::unique_ptr<::UIComponent > clone (::UIControl &cloneOwner) const
virtual void reset ()
virtual void render (::UIRenderContext &context)
virtual void updateUI (::UIMeasureStrategy const &uiMeasureStrategy)
virtual::std::string const & getTextToSpeechComponentValue () const
MCAPI TextComponent (::UIControl &owner, ::Bedrock::NotNullNonOwnerPtr<::FontRepository const > fontRepository)
MCAPI int _getCaretPosition () const
MCAPI::std::string const & _getMeasuredText (::UIRenderContext &context)
MCAPI::std::string calculateUpdatedText ()
MCAPI void setFontType (::std::string const &fontType)
MCAPI void setTextTTS (::std::string const &label)
MCAPI void * $ctor (::UIControl &owner, ::Bedrock::NotNullNonOwnerPtr<::FontRepository const > fontRepository)
MCAPI ::std::unique_ptr<::UIComponent > $clone (::UIControl &cloneOwner) const
MCAPI void $reset ()
MCAPI void $render (::UIRenderContext &context)
MCAPI void $updateUI (::UIMeasureStrategy const &uiMeasureStrategy)
MCAPI::std::string const & $getTextToSpeechComponentValue () const
virtual bool isRenderableComponent () const
MCAPI void _updateLayoutSize ()
MCAPI bool $isRenderableComponent () const
virtual::ComponentReceiveActionType receive (::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
virtual::ComponentReceiveActionType receive (::ScreenEvent const &screenEvent)
virtual void onNotifyChildAdded ()
virtual void onNotifyChildRemoved ()
virtual void onRemoved ()
virtual void onAdded ()
virtual void onVisibilityChanged (bool visible)
virtual void onEnabledChanged (bool enabled)
virtual bool isCustomFrameUpdateComponent () const
virtual bool onLayoutChange ()
virtual void reload (::UIComponent const &rhs)
MCAPI::ComponentReceiveActionType $receive (::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
MCAPI::ComponentReceiveActionType $receive (::ScreenEvent const &screenEvent)
MCAPI void $onNotifyChildAdded ()
MCAPI void $onNotifyChildRemoved ()
MCAPI void $onRemoved ()
MCAPI void $onAdded ()
MCAPI void $onVisibilityChanged (bool visible)
MCAPI void $onEnabledChanged (bool enabled)
MCAPI bool $isCustomFrameUpdateComponent () const
MCAPI bool $onLayoutChange ()
MCAPI void $reload (::UIComponent const &rhs)

Static Public Member Functions

static MCAPI ::HashedString const & getUIMaterialName (::UIMaterialType type)

Public Attributes

::ll::TypedStorage< 8, 80, ::FontHandle > mFontHandle
::ll::TypedStorage< 8, 80, ::FontHandle > mPrimaryFontHandle
::ll::TypedStorage< 8, 80, ::FontHandle > mBackupFontHandle
::ll::TypedStorage< 4, 4, float > mTextOffset
::ll::TypedStorage< 4, 16, ::mce::Color > mColor
::ll::TypedStorage< 4, 4, float > mLockedAlpha
::ll::TypedStorage< 4, 16, ::mce::Color > mLockedColor
::ll::TypedStorage< 4, 4, ::ui::FontSize > mFontSize
::ll::TypedStorage< 4, 4, float > mFontScaleFactor
::ll::TypedStorage< 4, 4, float > mLinePadding
::ll::TypedStorage< 4, 4, ::ui::TextAlignment > mAlignment
::ll::TypedStorage< 8, 32, ::std::string > mLabel
::ll::TypedStorage< 8, 32, ::std::string > mLabelTTS
::ll::TypedStorage< 4, 4, float > mCurrentTime
::ll::TypedStorage< 4, 4, int > mLastNumChanges
::ll::TypedStorage< 8, 8, uint64 > mLastTextHash
::ll::TypedStorage< 8, 8, uint64 > mLastFilteredTextHash
::ll::TypedStorage< 8, 32, ::std::string > mFilteredText
::ll::TypedStorage< 8, 32, ::std::string > mMeasuredText
::ll::TypedStorage< 8, 32, ::std::string > mRenderTextScratch
::ll::TypedStorage< 8, 32, ::std::string > mCachedText
::ll::TypedStorage< 8, 32, ::std::string > mLOCCachedText
::ll::TypedStorage< 8, 32, ::std::string > mCachedLangCode
::ll::TypedStorage< 8, 32, ::std::string > mCachedFontSources
::ll::TypedStorage< 8, 32, ::std::string > mCachedTextTTS
::ll::TypedStorage< 8, 24, ::std::vector< int > > mCaretOffsets
::ll::TypedStorage< 4, 4, float > mCaretHeightOffset
::ll::TypedStorage< 4, 4, float > mLineHeight
::ll::TypedStorage< 8, 24, ::std::vector<::std::string > > mNotifyControlsOnEllipses
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::FontRepository const > > mFontRepository
::ll::TypedStorage< 4, 12, ::std::optional<::glm::vec2 > > mLastClickRelativePosition
bool mShadow: 1
bool mShouldRenderCaret: 1
bool mLocalize: 1
bool mCaretBlinkVisible: 1
bool mHideHyphen: 1
bool mEnableProfanityFilter: 1
bool mProfanityFilterToggleState: 1
bool mBackupFontHandleOverridden: 1
bool mNotifyEllipsesOnSiblings: 1
bool mCachedTextDirty: 1
::ll::TypedStorage< 1, 1, bool > mSupportsLayoutOverride
::ll::TypedStorage< 4, 8, ::glm::vec2 > mMeasuredSize
::ll::TypedStorage< 4, 4, float > mPropagatedAlpha
::ll::TypedStorage< 8, 8, ::UIControl & > mOwner

Constructor & Destructor Documentation

◆ TextComponent()

MCAPI TextComponent::TextComponent ( ::UIControl & owner,
::Bedrock::NotNullNonOwnerPtr<::FontRepository const > fontRepository )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ clone()

virtual ::std::unique_ptr<::UIComponent > TextComponent::clone ( ::UIControl & cloneOwner) const
virtual

Implements UIComponent.

◆ reset()

virtual void TextComponent::reset ( )
virtual

Reimplemented from RenderableComponent.

◆ updateUI()

virtual void TextComponent::updateUI ( ::UIMeasureStrategy const & uiMeasureStrategy)
virtual

Reimplemented from RenderableComponent.

◆ _getCaretPosition()

MCAPI int TextComponent::_getCaretPosition ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _getMeasuredText()

MCAPI::std::string const & TextComponent::_getMeasuredText ( ::UIRenderContext & context)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ calculateUpdatedText()

MCAPI::std::string TextComponent::calculateUpdatedText ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setFontType()

MCAPI void TextComponent::setFontType ( ::std::string const & fontType)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setTextTTS()

MCAPI void TextComponent::setTextTTS ( ::std::string const & label)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * TextComponent::$ctor ( ::UIControl & owner,
::Bedrock::NotNullNonOwnerPtr<::FontRepository const > fontRepository )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $clone()

MCAPI ::std::unique_ptr<::UIComponent > TextComponent::$clone ( ::UIControl & cloneOwner) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $reset()

MCAPI void TextComponent::$reset ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $updateUI()

MCAPI void TextComponent::$updateUI ( ::UIMeasureStrategy const & uiMeasureStrategy)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getTextToSpeechComponentValue()

MCAPI::std::string const & TextComponent::$getTextToSpeechComponentValue ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isRenderableComponent()

virtual bool RenderableComponent::isRenderableComponent ( ) const
virtualinherited

Reimplemented from UIComponent.

◆ _updateLayoutSize()

MCAPI void RenderableComponent::_updateLayoutSize ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getUIMaterialName()

MCAPI ::HashedString const & RenderableComponent::getUIMaterialName ( ::UIMaterialType type)
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isRenderableComponent()

MCAPI bool RenderableComponent::$isRenderableComponent ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $receive() [1/2]

MCAPI::ComponentReceiveActionType UIComponent::$receive ( ::VisualTree & visualTree,
::ScreenInputContext & context,
::UIAnimationController & animationController,
::ScreenEvent const & screenEvent )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $receive() [2/2]

MCAPI::ComponentReceiveActionType UIComponent::$receive ( ::ScreenEvent const & screenEvent)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onNotifyChildAdded()

MCAPI void UIComponent::$onNotifyChildAdded ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onNotifyChildRemoved()

MCAPI void UIComponent::$onNotifyChildRemoved ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onRemoved()

MCAPI void UIComponent::$onRemoved ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAdded()

MCAPI void UIComponent::$onAdded ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onVisibilityChanged()

MCAPI void UIComponent::$onVisibilityChanged ( bool visible)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onEnabledChanged()

MCAPI void UIComponent::$onEnabledChanged ( bool enabled)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isCustomFrameUpdateComponent()

MCAPI bool UIComponent::$isCustomFrameUpdateComponent ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onLayoutChange()

MCAPI bool UIComponent::$onLayoutChange ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $reload()

MCAPI void UIComponent::$reload ( ::UIComponent const & rhs)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: