Files
UnrealEngineUWP/Engine/Source/Editor/StatsViewer/Public/ObjectHyperlinkColumnInitializationOptions.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

41 lines
1.6 KiB
C

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
/** Delegate called to generate a custom widget for display in a cell of a UObject custom column */
DECLARE_DELEGATE_RetVal_TwoParams(TSharedRef<class SWidget>, FOnGenerateWidget, const FText& /** InValueAsText */, const TWeakObjectPtr< UObject >& /** InObjectPtr */);
/** Delegate called when a hyperlink is clicked in a UObject custom column */
DECLARE_DELEGATE_OneParam(FOnObjectHyperlinkClicked, const TWeakObjectPtr< UObject >& /** InObjectPtr */);
/** Delegate used to query whether a UClass is supported by a UObject custom column */
DECLARE_DELEGATE_RetVal_OneParam(bool, FOnIsClassSupported, const UClass* /** InClassToQuery */);
/**
* Struct used to further customize object hyperlink custom columns.
*/
struct FObjectHyperlinkColumnInitializationOptions
{
/**
* Delegate called to generate a custom widget for display in a cell of a UObject custom column.
* Note that overriding this means that the calling code is responsible for handling interactions
* with the widget, i.e. OnObjectHyperlinkClicked will not be called.
*/
FOnGenerateWidget OnGenerateWidget;
/**
* Delegate called when a hyperlink is clicked in a UObject custom column
* Note that this is not called if OnGenerateWidget is bound.
*/
FOnObjectHyperlinkClicked OnObjectHyperlinkClicked;
/**
* Delegate used to query whether a UClass is supported by a UObject custom column.
* Use this to implement custom columns that support your weak object type or
* override an existing internal implementation.
*/
FOnIsClassSupported OnIsClassSupported;
};