Files
UnrealEngineUWP/Engine/Source/Editor/StatsViewer/Public/ObjectHyperlinkColumnInitializationOptions.h
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -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;
};