|
| IMAGEDOWNLOAD_API | FWebImage () |
| |
| IMAGEDOWNLOAD_API | ~FWebImage () |
| |
| | DECLARE_DELEGATE_OneParam (FOnImageDownloaded, bool) |
| |
| FWebImage & | SetStandInBrush (TAttribute< const FSlateBrush * > StandInBrushIn) |
| |
| IMAGEDOWNLOAD_API bool | BeginDownload (const FString &InUrl, const TOptional< FString > &StandInETag=TOptional< FString >(), const FOnImageDownloaded &DownloadCallback=FOnImageDownloaded()) |
| |
| bool | BeginDownload (const FString &InUrl, const FOnImageDownloaded &DownloadCallback) |
| |
| IMAGEDOWNLOAD_API void | CancelDownload () |
| |
| IMAGEDOWNLOAD_API TAttribute< const FSlateBrush * > | Attr () const |
| |
| const FSlateBrush * | GetBrush () const |
| |
| const FSlateBrush * | GetDownloadedBrush () const |
| |
| bool | IsDownloadPending () const |
| |
| bool | DidDownloadSucceed () const |
| |
| bool | DidDownloadFail () const |
| |
| const FString & | GetUrl () const |
| |
| const TOptional< FString > & | GetETag () const |
| |
| TSharedRef< FWebImage, Mode > | AsShared () |
| |
| TSharedRef< FWebImage const, Mode > | AsShared () const |
| |
| TSharedRef< SubobjectType, Mode > | AsSharedSubobject (SubobjectType *SubobjectPtr) const |
| |
| TWeakPtr< FWebImage, Mode > | AsWeak () |
| |
| TWeakPtr< FWebImage const, Mode > | AsWeak () const |
| |
| TWeakPtr< SubobjectType, Mode > | AsWeakSubobject (SubobjectType *SubobjectPtr) const |
| |
| void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const |
| |
| void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const |
| |
| UE_FORCEINLINE_HINT bool | DoesSharedInstanceExist () const |
| |
This class manages downloading an image and swapping it out a standin once it's done.
Example (not cached): FWebImage Image; Image.SetStandInBrush(FStyle::Get()->GetBrush("Foo")); Image.BeginDownload(Url, OptionalCallback);
SNew(SImage) .Image(Image.Attr())
You may want to get your FWebImage from a FWebImageCache so we're not re-downloading the same URL all the time.
Example (cached): FWebImageCache ImageCache; // usually global ImageCache.SetStandInBrush(FStyle::Get()->GetBrush("Foo"));
SNew(SImage) .Image(ImageCache.Download(Url)->Attr())