Open 3D Engine LyShine Gem API Reference
23.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Inherits ComponentBus.
Public Types | |
enum | ImageType : int32_t { ImageType::Stretched, ImageType::Sliced, ImageType::Fixed, ImageType::Tiled, ImageType::StretchedToFit, ImageType::StretchedToFill } |
enum | SpriteType : int32_t { SpriteAsset, RenderTarget } |
enum | FillType : int32_t { FillType::None, FillType::Linear, FillType::Radial, FillType::RadialCorner, FillType::RadialEdge } |
enum | FillCornerOrigin : int32_t { TopLeft, TopRight, BottomRight, BottomLeft } |
enum | FillEdgeOrigin : int32_t { Left, Top, Right, Bottom } |
Public Member Functions | |
virtual AZ::Color | GetColor ()=0 |
Gets the image color tint. | |
virtual void | SetColor (const AZ::Color &color)=0 |
Sets the image color tint. | |
virtual float | GetAlpha ()=0 |
Gets the image color alpha. | |
virtual void | SetAlpha (float color)=0 |
Sets the image color alpha. | |
virtual ISprite * | GetSprite ()=0 |
Gets the sprite for this element. | |
virtual void | SetSprite (ISprite *sprite)=0 |
Sets the sprite for this element. | |
virtual AZStd::string | GetSpritePathname ()=0 |
Gets the source location of the image to be displayed by the element. | |
virtual void | SetSpritePathname (AZStd::string spritePath)=0 |
Sets the source location of the image to be displayed by the element. | |
virtual bool | SetSpritePathnameIfExists (AZStd::string spritePath)=0 |
virtual AZ::Data::Asset < AZ::RPI::AttachmentImageAsset > | GetAttachmentImageAsset ()=0 |
virtual void | SetAttachmentImageAsset (const AZ::Data::Asset< AZ::RPI::AttachmentImageAsset > &attachmentImageAsset)=0 |
virtual bool | GetIsRenderTargetSRGB ()=0 |
Gets whether the render target is in sRGB color space. | |
virtual void | SetIsRenderTargetSRGB (bool isSRGB)=0 |
Sets whether the render target is in sRGB color space. | |
virtual SpriteType | GetSpriteType ()=0 |
Gets the type of the sprite. | |
virtual void | SetSpriteType (SpriteType spriteType)=0 |
Sets the type of the sprite. | |
virtual ImageType | GetImageType ()=0 |
Gets the type of the image. | |
virtual void | SetImageType (ImageType imageType)=0 |
Sets the type of the image. | |
virtual FillType | GetFillType ()=0 |
Gets the fill type for the image. | |
virtual void | SetFillType (FillType fillType)=0 |
Sets the fill type for the image. | |
virtual float | GetFillAmount ()=0 |
Gets the fill amount for the image in the range [0,1]. | |
virtual void | SetFillAmount (float fillAmount)=0 |
Sets the fill amount for the image in the range [0,1]. | |
virtual float | GetRadialFillStartAngle ()=0 |
Gets the start angle for radial fill, measured clockwise in degrees from straight up. | |
virtual void | SetRadialFillStartAngle (float radialFillStartAngle)=0 |
Sets the start angle for radial fill, measured clockwise in degrees from straight up. | |
virtual FillCornerOrigin | GetCornerFillOrigin ()=0 |
Gets the corner fill origin. | |
virtual void | SetCornerFillOrigin (FillCornerOrigin cornerOrigin)=0 |
Sets the corner fill origin. | |
virtual FillEdgeOrigin | GetEdgeFillOrigin ()=0 |
Gets the edge fill origin. | |
virtual void | SetEdgeFillOrigin (FillEdgeOrigin edgeOrigin)=0 |
Sets the edge fill origin. | |
virtual bool | GetFillClockwise ()=0 |
Gets whether the image is filled clockwise. | |
virtual void | SetFillClockwise (bool fillClockwise)=0 |
Sets whether the image is filled clockwise. | |
virtual bool | GetFillCenter ()=0 |
Gets whether the center of a sliced image is filled. | |
virtual void | SetFillCenter (bool fillCenter)=0 |
Sets whether the center of a sliced image is filled. | |
Static Public Attributes | |
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
Only one component on a entity can implement the events. | |
|
strong |
|
strong |
|
pure virtual |
Sets the source location of the image to be displayed by the element only if the sprite asset exists. Otherwise, the current sprite remains unchanged. Returns whether the sprite changed