Files
UnrealEngine/Engine/Source/Developer/WidgetRegistration/Private/DataVisualization/ZeroStateBuilderTemplates.h
2025-05-18 13:04:45 +08:00

30 lines
855 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ZeroStateBuilder.h"
/**
* FZeroStateBuilderTemplates provides some templates for Zero State Builders.
*/
class FZeroStateBuilderTemplates
{
public:
static const FZeroStateBuilderTemplates& Get();
/**
* A default Zero state builder which gives a general default icon and text for unavailable items
*
* @param DefaultText the text shown below the icon in the zero state view
*/
TSharedRef<FZeroStateBuilder> GetDefault( FText DefaultText = FText::GetEmpty() ) const;
/**
* A Zero state builder which gives an icon and text for no favorites items available
* @param NoFavoritesAvailableText the text shown below the icon in the zero state view
*/
TSharedRef<FZeroStateBuilder> GetFavorites( FText NoFavoritesAvailableText = FText::GetEmpty() ) const;
};