Space Plunder
Loading...
Searching...
No Matches
WidgetLayout.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameplayTagContainer.h"
7#include "UObject/Interface.h"
8#include "WidgetLayout.generated.h"
9
10// This class does not need to be modified.
11UINTERFACE(NotBlueprintable)
12class UWidgetLayout : public UInterface
13{
14 GENERATED_BODY()
15};
16
20class BASEHELPERS_API IWidgetLayout
21{
22 GENERATED_BODY()
23
24 // Add interface functions to this class. This is the class that will be inherited to implement this interface.
25public:
26 UFUNCTION(BlueprintCallable, Category="Layout")
27 virtual UUserWidget* PushWidget(const TSoftClassPtr<UUserWidget>& WidgetClass) = 0;
28
29 UFUNCTION(BlueprintCallable, Category="Layout")
30 virtual void PopWidget() = 0;
31
32 UFUNCTION(BlueprintCallable, Category="Layout")
33 virtual void ClearStack() = 0;
34
35 UFUNCTION(BlueprintCallable, Category="Layout")
36 virtual bool ToggleWidget(UUserWidget* Widget) = 0;
37
38 UFUNCTION(BlueprintCallable, Category="Layout")
39 virtual UUserWidget* AddWidgetToLayer(const TSoftClassPtr<UUserWidget>& WidgetClass) = 0;
40 UFUNCTION(BlueprintCallable, Category="Layout")
41 virtual UUserWidget* AddWidgetToLayerWithSlot(const FGameplayTag& SlotTag, const TSoftClassPtr<UUserWidget>& WidgetClass) = 0;
42
44 UFUNCTION(BlueprintCallable, Category="Layout")
45 virtual UUserWidget* GetContentFromLayer(const TSoftClassPtr<UUserWidget>& WidgetClass) = 0;
46
47};
Definition WidgetLayout.h:21
Definition WidgetLayout.h:13