34 lines
792 B
C++
34 lines
792 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "SGraphPin.h"
|
|
#include "Templates/SharedPointer.h"
|
|
#include "Widgets/DeclarativeSyntaxSupport.h"
|
|
#include "Widgets/SWidget.h"
|
|
|
|
class SWidget;
|
|
class UEdGraphPin;
|
|
struct FSlateBrush;
|
|
|
|
class GRAPHEDITOR_API SGraphPinExec : public SGraphPin
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS(SGraphPinExec) {}
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs, UEdGraphPin* InPin);
|
|
|
|
protected:
|
|
//~ Begin SGraphPin Interface
|
|
virtual TSharedRef<SWidget> GetDefaultValueWidget() override;
|
|
virtual const FSlateBrush* GetPinIcon() const override;
|
|
//~ End SGraphPin Interface
|
|
|
|
void CachePinIcons();
|
|
|
|
const FSlateBrush* CachedImg_Pin_ConnectedHovered;
|
|
const FSlateBrush* CachedImg_Pin_DisconnectedHovered;
|
|
};
|