RealtimeStyleTransferRuntime/Source/LyraGame/UI/Common/LyraTabButtonBase.h

37 lines
885 B
C
Raw Permalink Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "LyraTabListWidgetBase.h"
#include "UI/Foundation/LyraButtonBase.h"
2022-09-13 07:18:28 +00:00
#include "UObject/SoftObjectPtr.h"
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "LyraTabButtonBase.generated.h"
class UCommonLazyImage;
2022-09-13 07:18:28 +00:00
class UObject;
struct FFrame;
struct FSlateBrush;
2022-05-23 18:41:30 +00:00
UCLASS(Abstract, Blueprintable, meta = (DisableNativeTick))
class LYRAGAME_API ULyraTabButtonBase : public ULyraButtonBase, public ILyraTabButtonInterface
{
GENERATED_BODY()
public:
void SetIconFromLazyObject(TSoftObjectPtr<UObject> LazyObject);
void SetIconBrush(const FSlateBrush& Brush);
protected:
UFUNCTION()
virtual void SetTabLabelInfo_Implementation(const FLyraTabDescriptor& TabLabelInfo) override;
private:
UPROPERTY(meta = (BindWidgetOptional))
2022-09-13 07:18:28 +00:00
TObjectPtr<UCommonLazyImage> LazyImage_Icon;
2022-05-23 18:41:30 +00:00
};