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

Public Member Functions

virtual ::std::unique_ptr<::UIComponent > clone (::UIControl &cloneOwner) const
virtual void reset ()
MCAPI SpriteComponent (::UIControl &owner)
MCAPI void _drawClipped (::glm::vec2 const &pos, ::glm::vec2 const &size, ::glm::vec2 const &startUV, ::glm::vec2 const &uvSize, ::std::function< void(::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &)> callback) const
MCAPI void _drawFilled (::UIRenderContext &context, ::glm::vec2 const &startPos, ::glm::vec2 const &size, ::glm::vec2 const &startUV, ::glm::vec2 const &uvSize) const
MCAPI void _drawKeepRatio (::UIRenderContext &context, ::glm::vec2 const &startPos, ::glm::vec2 const &size, ::glm::vec2 const &startUV, ::glm::vec2 const &uvSize) const
MCAPI void _drawTiled (::glm::vec2 const &startPos, ::glm::vec2 const &size, ::glm::vec2 const &startUV, ::glm::vec2 const &uvSize, ::std::function< void(::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &)> callback) const
MCAPI void _drawTiledClipped (::glm::vec2 const &startPos, ::glm::vec2 const &size, ::glm::vec2 const &startUV, ::glm::vec2 const &uvSize, ::std::function< void(::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &)> callback)
MCAPI void _getClippedInfo (::glm::vec2 &clipPos, ::glm::vec2 &clipSize, ::glm::vec2 &clipUV, ::glm::vec2 &clipUVSize) const
MCAPI void render (::UIRenderContext &context)
MCAPI void setResourceLocation (::ResourceLocation const &resourceLocation)
MCAPI void setZipFolder (::Core::PathView zipFolder)
MCAPI void * $ctor (::UIControl &owner)
MCAPI ::std::unique_ptr<::UIComponent > $clone (::UIControl &cloneOwner) const
MCAPI void $reset ()
virtual void updateUI (::UIMeasureStrategy const &context)
virtual bool isRenderableComponent () const
MCAPI void _updateLayoutSize ()
MCAPI void $updateUI (::UIMeasureStrategy const &context)
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)
virtual::std::string const & getTextToSpeechComponentValue () const
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)
MCAPI::std::string const & $getTextToSpeechComponentValue () const

Static Public Member Functions

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

Public Attributes

::ll::TypedStorage< 8, 56, ::ResourceLocation > mResourceLocation
::ll::TypedStorage< 8, 96, ::UITextureInfoPtr > mUITextureInfo
::ll::TypedStorage< 8, 96, ::UITextureInfoPtr > mBackCompatUITexture
::ll::TypedStorage< 8, 32, ::mce::TexturePtr > mTexture
::ll::TypedStorage< 4, 20, ::cg::ImageDescription > mCachedImageDescription
::ll::TypedStorage< 8, 64, ::BackwardsCompatTextureInfo > mCachedBackwardsCompatTextureInfo
::ll::TypedStorage< 4, 4, ::UIMaterialType > mUIMaterialType
::ll::TypedStorage< 4, 8, ::glm::vec2 > mUV
::ll::TypedStorage< 4, 8, ::glm::vec2 > mUVSize
::ll::TypedStorage< 4, 16, ::mce::Color > mColor
::ll::TypedStorage< 4, 16, ::ui::SliceSize > mNineSliceSize
::ll::TypedStorage< 1, 1, ::ui::ClipDirection > mClipDirection
::ll::TypedStorage< 4, 8, ::glm::vec2 > mTiledScale
::ll::TypedStorage< 4, 8, ::glm::vec2 > mInvTextureSize
::ll::TypedStorage< 4, 4, ::ui::TileDirection > mTiled
::ll::TypedStorage< 4, 4, float > mClipRatio
bool mClipPixelPerfect: 1
bool mHasNineSlice: 1
bool mPixelPerfect: 1
bool mKeepRatio: 1
bool mFilled: 1
bool mEnableGrayscale: 1
bool mEnableBilinear: 1
bool mTriggerDebugLog: 1
bool mForceReloadTexture: 1
bool mTextureHasChanged: 1
bool mAllowDebugTextureReplacement: 1
bool mColorCorrected: 1
::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > > mZipFolder
::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

◆ SpriteComponent()

MCAPI SpriteComponent::SpriteComponent ( ::UIControl & owner)
explicit
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 > SpriteComponent::clone ( ::UIControl & cloneOwner) const
virtual

Implements UIComponent.

◆ reset()

virtual void SpriteComponent::reset ( )
virtual

Reimplemented from RenderableComponent.

◆ _drawClipped()

MCAPI void SpriteComponent::_drawClipped ( ::glm::vec2 const & pos,
::glm::vec2 const & size,
::glm::vec2 const & startUV,
::glm::vec2 const & uvSize,
::std::function< void(::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &)> callback ) 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.

◆ _drawFilled()

MCAPI void SpriteComponent::_drawFilled ( ::UIRenderContext & context,
::glm::vec2 const & startPos,
::glm::vec2 const & size,
::glm::vec2 const & startUV,
::glm::vec2 const & uvSize ) 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.

◆ _drawKeepRatio()

MCAPI void SpriteComponent::_drawKeepRatio ( ::UIRenderContext & context,
::glm::vec2 const & startPos,
::glm::vec2 const & size,
::glm::vec2 const & startUV,
::glm::vec2 const & uvSize ) 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.

◆ _drawTiled()

MCAPI void SpriteComponent::_drawTiled ( ::glm::vec2 const & startPos,
::glm::vec2 const & size,
::glm::vec2 const & startUV,
::glm::vec2 const & uvSize,
::std::function< void(::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &)> callback ) 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.

◆ _drawTiledClipped()

MCAPI void SpriteComponent::_drawTiledClipped ( ::glm::vec2 const & startPos,
::glm::vec2 const & size,
::glm::vec2 const & startUV,
::glm::vec2 const & uvSize,
::std::function< void(::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &, ::glm::vec2 const &)> callback )
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.

◆ _getClippedInfo()

MCAPI void SpriteComponent::_getClippedInfo ( ::glm::vec2 & clipPos,
::glm::vec2 & clipSize,
::glm::vec2 & clipUV,
::glm::vec2 & clipUVSize ) 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.

◆ setResourceLocation()

MCAPI void SpriteComponent::setResourceLocation ( ::ResourceLocation const & resourceLocation)
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.

◆ setZipFolder()

MCAPI void SpriteComponent::setZipFolder ( ::Core::PathView zipFolder)
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 * SpriteComponent::$ctor ( ::UIControl & owner)
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 > SpriteComponent::$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 SpriteComponent::$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.

◆ 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.

◆ $updateUI()

MCAPI void RenderableComponent::$updateUI ( ::UIMeasureStrategy const & context)
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.

◆ $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.

◆ $getTextToSpeechComponentValue()

MCAPI::std::string const & UIComponent::$getTextToSpeechComponentValue ( ) 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.

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