Slate widget that displays sprite flipbooks.
More...
#include <SVisualImage.h>
|
FCurveSequence | CurveSequence |
| Drives animation of the flipbook.
|
|
TSlateAttribute< const UPaperFlipbook * > | Flipbook |
| Resource that is rendered by this widget.
|
|
TSlateAttribute< FSlateColor > | ColorAndOpacity |
| Color and opacity of the flipbook.
|
|
TSlateAttribute< TOptional< FVector2D > > | CustomDesiredScale |
| Optional custom scale for the flipbook.
|
|
TSlateAttribute< FVector2D > | MirrorScale |
| Orientational scale of the flipbook.
|
|
bool | bAnimate |
| Animation state of the flipbook.
|
|
int32 | SpriteIndex |
| Index of specific sprite of the flipbook to display.
|
|
Slate widget that displays sprite flipbooks.
- See also
- UVisualImage
◆ AddReferencedObjects()
void SVisualImage::AddReferencedObjects |
( |
FReferenceCollector & | Collector | ) |
|
|
overrideprotectedvirtual |
Provides references to members for Garbage Collector.
- Parameters
-
Collector | gathers references to members |
Reimplemented in SBackgroundVisualImage.
◆ ComputeDesiredSize()
FVector2D SVisualImage::ComputeDesiredSize |
( |
float | | ) |
const |
|
overrideprotectedvirtual |
◆ ComputeVolatility()
bool SVisualImage::ComputeVolatility |
( |
| ) |
const |
|
overrideprotectedvirtual |
- Returns
true
when this widget is volatile (slate-wise)
◆ Construct()
void SVisualImage::Construct |
( |
const FArguments & | Args | ) |
|
Constructor call for slate declarative syntax.
- Parameters
-
◆ GetAnimate()
FORCEINLINE bool SVisualImage::GetAnimate |
( |
| ) |
const |
|
inlineprotected |
◆ GetColorAndOpacity()
FORCEINLINE TSlateAttributeRef< FSlateColor > SVisualImage::GetColorAndOpacity |
( |
| ) |
const |
|
inlineprotected |
◆ GetCurrentSprite()
UPaperSprite * SVisualImage::GetCurrentSprite |
( |
| ) |
const |
- Returns
- sprite that is rendered at this time
◆ GetCurveSequence()
FORCEINLINE FCurveSequence * SVisualImage::GetCurveSequence |
( |
| ) |
|
|
inlineprotected |
◆ GetDesiredScale()
FORCEINLINE TSlateAttributeRef< TOptional< FVector2D > > SVisualImage::GetDesiredScale |
( |
| ) |
const |
|
inlineprotected |
◆ GetFinalColorAndOpacity()
const FLinearColor SVisualImage::GetFinalColorAndOpacity |
( |
const FWidgetStyle & | InWidgetStyle | ) |
const |
|
virtual |
◆ GetFinalResource()
UObject * SVisualImage::GetFinalResource |
( |
| ) |
const |
|
virtual |
◆ GetFlipbook()
FORCEINLINE TSlateAttributeRef< const UPaperFlipbook * > SVisualImage::GetFlipbook |
( |
| ) |
const |
|
inlineprotected |
◆ GetImageSize()
const FVector2D SVisualImage::GetImageSize |
( |
| ) |
const |
|
virtual |
◆ GetMirrorScale()
FORCEINLINE TSlateAttributeRef< FVector2D > SVisualImage::GetMirrorScale |
( |
| ) |
const |
|
inlineprotected |
◆ GetReferencerName()
FString SVisualImage::GetReferencerName |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ GetSpriteIndex()
FORCEINLINE int32 SVisualImage::GetSpriteIndex |
( |
| ) |
const |
|
inlineprotected |
◆ IsResourceValid()
bool SVisualImage::IsResourceValid |
( |
| ) |
const |
|
virtual |
Declared as virtual so subclasses can override them, but these methods are statically dispatched in the base class and all must be implemented.
- See also
- SVisualImageBase::IsResourceValid()
- Returns
true
when flipbook is valid
◆ MakeCustomGeometry()
FGeometry SVisualImage::MakeCustomGeometry |
( |
const FGeometry & | AllotedGeometry | ) |
const |
|
virtual |
◆ PostSlateDrawElementExtension()
void SVisualImage::PostSlateDrawElementExtension |
( |
| ) |
const |
|
virtual |
◆ PreSlateDrawElementExtension()
void SVisualImage::PreSlateDrawElementExtension |
( |
| ) |
const |
|
virtual |
◆ SetAnimate()
void SVisualImage::SetAnimate |
( |
bool | IsAnimated | ) |
|
◆ SetColorAndOpacity() [1/3]
void SVisualImage::SetColorAndOpacity |
( |
const FLinearColor & | InLinearColor | ) |
|
◆ SetColorAndOpacity() [2/3]
void SVisualImage::SetColorAndOpacity |
( |
const FSlateColor & | InSlateColor | ) |
|
Slate color version.
- See also
- SVisualImage::SetColorAndOpacity(FLinearColor)
- Parameters
-
InSlateColor | slate color and opacity |
◆ SetColorAndOpacity() [3/3]
void SVisualImage::SetColorAndOpacity |
( |
TAttribute< FSlateColor > | InColorAttribute | ) |
|
Attribute version.
- See also
- SVisualImage::SetColorAndOpacity(FLinearColor)
- Parameters
-
InColorAttribute | new color and opacity attribute |
◆ SetDesiredScale() [1/3]
void SVisualImage::SetDesiredScale |
( |
const FVector2D & | InDesiredScale | ) |
|
◆ SetDesiredScale() [2/3]
void SVisualImage::SetDesiredScale |
( |
TAttribute< TOptional< FVector2D > > | InDesiredScale | ) |
|
◆ SetDesiredScale() [3/3]
void SVisualImage::SetDesiredScale |
( |
TOptional< FVector2D > | InDesiredScale | ) |
|
◆ SetFlipbook() [1/2]
void SVisualImage::SetFlipbook |
( |
TAttribute< const UPaperFlipbook * > | InFlipbook | ) |
|
◆ SetFlipbook() [2/2]
void SVisualImage::SetFlipbook |
( |
UPaperFlipbook * | InFlipbook | ) |
|
◆ SetMirrorScale() [1/3]
void SVisualImage::SetMirrorScale |
( |
const FScale2D & | InMirrorScale | ) |
|
◆ SetMirrorScale() [2/3]
void SVisualImage::SetMirrorScale |
( |
const FVector2D & | InMirrorScale | ) |
|
◆ SetMirrorScale() [3/3]
void SVisualImage::SetMirrorScale |
( |
TAttribute< FVector2D > | InMirrorScale | ) |
|
◆ SetSpriteIndex()
void SVisualImage::SetSpriteIndex |
( |
int32 | Index | ) |
|
◆ bAnimate
bool SVisualImage::bAnimate |
|
private |
◆ ColorAndOpacity
TSlateAttribute<FSlateColor> SVisualImage::ColorAndOpacity |
|
private |
Color and opacity of the flipbook.
Does not override all other color and opacity modifiers.
◆ MirrorScale
TSlateAttribute<FVector2D> SVisualImage::MirrorScale |
|
private |
Orientational scale of the flipbook.
Can be mirrored along both X and Y axes.
- Note
- zero values are invalid.
◆ SpriteIndex
int32 SVisualImage::SpriteIndex |
|
private |
Index of specific sprite of the flipbook to display.
Must be within bounds of flipbook frames.
- Note
- has no effect when SVisualImage::bAnimate is true
The documentation for this class was generated from the following files:
- SVisualImage.h
- SVisualImage.cpp