Unreal OpenAI API 1.0.0
ImagePreviewWidget.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "EditorUtilityWidget.h"
7#include "ImagePreviewWidget.generated.h"
8
9class USizeBox;
10class UImage;
11
12UCLASS()
13class OPENAIEDITOR_API UImagePreviewWidget : public UEditorUtilityWidget
14{
15 GENERATED_BODY()
16
17protected:
18 UPROPERTY(meta = (BindWidget))
19 TObjectPtr<USizeBox> ImageSizeBox;
20
21 UPROPERTY(meta = (BindWidget))
22 TObjectPtr<UImage> PreviewImage;
23
24public:
25 void SetBase64(const FString& Base64String);
26};
Definition: ImagePreviewWidget.h:14