UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WebImageCache.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "WebImage.h"
8
9struct FSlateBrush;
10
18{
19public:
21
24
27
30
33
34 /* This function causes the web image cache to stop holding on to strong references to images. Normally
35 * once downloaded, an image is cached forever. This allows us to release images that are not currently
36 * being displayed (those would have Strong pointers existing external to this class) to be released.
37 */
39
40private:
43
45 TArray< TSharedRef<FWebImage> > StrongRefCache;
46
48 TAttribute< const FSlateBrush* > DefaultStandInBrush;
49};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition WebImageCache.h:18
IMAGEDOWNLOAD_API void PreUnload()
Definition WebImageCache.cpp:11
IMAGEDOWNLOAD_API FWebImageCache()
Definition WebImageCache.cpp:6
IMAGEDOWNLOAD_API void Empty()
Definition WebImageCache.cpp:19
IMAGEDOWNLOAD_API void RelinquishUnusedImages()
Definition WebImageCache.cpp:91
void SetDefaultStandInBrush(TAttribute< const FSlateBrush * > StandInBrushIn)
Definition WebImageCache.h:32
IMAGEDOWNLOAD_API TSharedRef< const FWebImage > Download(const FString &Url, const TOptional< FString > &DefaultImageUrl=TOptional< FString >())
Definition WebImageCache.cpp:30
Definition Array.h:670
Definition Attribute.h:17
Definition UnrealString.h.inl:34
Definition SharedPointer.h:153
Definition SlateBrush.h:239
Definition Optional.h:131