Stream Chat Unreal SDK
Loading...
Searching...
No Matches
BackButton.h
1// Copyright 2022 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Components/Button.h"
6#include "Components/Image.h"
7#include "CoreMinimal.h"
8#include "StreamWidget.h"
9
10#include "BackButton.generated.h"
11
17UCLASS()
18class STREAMCHATUI_API UBackButton : public UStreamWidget
19{
20 GENERATED_BODY()
21
22public:
24
25 UPROPERTY(EditAnywhere, Category = Defaults)
26 UTexture2D* IconTexture;
27
28 UPROPERTY(EditAnywhere, Category = Defaults)
29 FMargin IconPadding;
30
31protected:
32 UPROPERTY(meta = (BindWidget))
33 UButton* Button;
34
35 UPROPERTY(meta = (BindWidget))
36 UImage* Icon;
37
38private:
39 virtual void NativeOnInitialized() override;
40 virtual void NativePreConstruct() override;
41 virtual void NativeConstruct() override;
42 virtual void NativeDestruct() override;
43
44 UFUNCTION()
45 void OnButtonClicked();
46};
A button with an icon which can be disabled and themed.
Definition: BackButton.h:19