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)
MCAPI bool _fontSourcesChanged ()
MCAPI::glm::vec2 _generateTextMaxSize () const
MCAPI int _getCaretPosition () const
MCAPI::std::string _getMeasuredText (::UIRenderContext &context)
MCAPI::RectangleArea _getParentArea (::UIRenderContext &context)
MCAPI bool _updateCachedText ()
MCAPI::std::string calculateUpdatedText ()
MCFOLD::mce::Color const & getColor () const
MCAPI void setAlignment (::ui::TextAlignment alignment)
MCAPI void setColor (::mce::Color const &color)
MCAPI void setFontScaleFactor (float fontScaleFactor)
MCAPI void setFontType (::std::string const &fontType)
MCAPI void setTextTTS (::std::string const &label)
MCAPI void * $ctor (::UIControl &owner)
MCAPI void $dtor ()
MCAPI ::std::unique_ptr<::UIComponent > $clone (::UIControl &cloneOwner) const
MCAPI void $reset ()
MCAPI void $render (::UIRenderContext &context)
MCAPI void $updateUI (::UIMeasureStrategy const &uiMeasureStrategy)
MCFOLD::std::string const & $getTextToSpeechComponentValue () const
virtual bool isRenderableComponent () const
MCAPI bool _hasDefaultHeightSizing () const
MCAPI bool _hasDefaultSizing (::LayoutVariableType type) const
MCAPI bool _hasDefaultWidthSizing () const
MCAPI bool _hasMaxSize () const
MCAPI bool _hasMinSize () const
MCAPI void _updateLayoutSize ()
MCAPI float getLayoutAxisOffsetOverride (::LayoutVariableType type) const
MCAPI bool overridesLayoutAxisOffset (::LayoutVariableType type) const
MCAPI void setPropagatedAlpha (float alpha)
MCAPI void * $ctor (::UIControl &owner, bool supportsLayoutOverride)
MCFOLD 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)
MCFOLD::UIControl const & getOwner () const
MCFOLD::UIControl & getOwner ()
MCAPI bool isLocked () const
MCFOLD::ComponentReceiveActionType $receive (::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
MCFOLD::ComponentReceiveActionType $receive (::ScreenEvent const &screenEvent)
MCFOLD void $onNotifyChildAdded ()
MCFOLD void $onNotifyChildRemoved ()
MCFOLD void $onRemoved ()
MCFOLD void $onAdded ()
MCFOLD void $onVisibilityChanged (bool visible)
MCFOLD void $onEnabledChanged (bool enabled)
MCFOLD bool $isCustomFrameUpdateComponent () const
MCFOLD bool $onLayoutChange ()
MCFOLD void $reload (::UIComponent const &rhs)

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI ::HashedString const & getUIMaterialName (::UIMaterialType type)

Public Attributes

::ll::TypedStorage< 8, 80, ::FontHandlemFontHandle
::ll::TypedStorage< 8, 80, ::FontHandlemPrimaryFontHandle
::ll::TypedStorage< 8, 80, ::FontHandlemBackupFontHandle
::ll::TypedStorage< 4, 4, float > mTextOffset
::ll::TypedStorage< 4, 16, ::mce::ColormColor
::ll::TypedStorage< 4, 4, float > mLockedAlpha
::ll::TypedStorage< 4, 16, ::mce::ColormLockedColor
::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 > 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, 64, ::std::function<::std::pair<::FontHandle, ::FontHandle >(::std::string const &)> > mGetFontsFromFontTypeCallback
::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

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.

◆ $vftable()

MCAPI void ** TextComponent::$vftable ( )
static
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.


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