Files
UnrealEngineUWP/Engine/Source/Editor/StatsViewer/Public/ObjectHyperlinkColumnInitializationOptions.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

38 lines
1.6 KiB
C

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
/** 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;
};