UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Throbber.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "Widgets/SWidget.h"
9#include "Components/Widget.h"
11#include "Throbber.generated.h"
12
14
18UCLASS(MinimalAPI)
20{
22
23public:
24
25 UE_DEPRECATED(5.1, "Direct access to NumberOfPieces is deprecated. Please use the getter or setter.")
27 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, BlueprintSetter="SetNumberOfPieces", Category=Appearance, meta=( ClampMin="1", ClampMax="25", UIMin="1", UIMax="25" ))
28 int32 NumberOfPieces;
29
30 UE_DEPRECATED(5.1, "Direct access to bAnimateHorizontally is deprecated. Please use the getter or setter.")
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter="IsAnimateHorizontally", Setter="SetAnimateHorizontally", BlueprintSetter = "SetAnimateHorizontally", Category = Appearance)
33 bool bAnimateHorizontally;
34
35 UE_DEPRECATED(5.1, "Direct access to bAnimateVertically is deprecated. Please use the getter or setter.")
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter="IsAnimateVertically", Setter="SetAnimateVertically", BlueprintSetter="SetAnimateVertically", Category = Appearance)
38 bool bAnimateVertically;
39
40 UE_DEPRECATED(5.1, "Direct access to bAnimateOpacity is deprecated. Please use the getter or setter.")
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter="IsAnimateOpacity", Setter="SetAnimateOpacity", BlueprintSetter="SetAnimateOpacity", Category = Appearance)
43 bool bAnimateOpacity;
44
45 UE_DEPRECATED(5.1, "Direct access to Image is deprecated. Please use the getter or setter.")
47 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, Category=Appearance)
49
50public:
51
53 UFUNCTION(BlueprintCallable, Category="Appearance")
54 UMG_API void SetNumberOfPieces(int32 InNumberOfPieces);
55 UMG_API int32 GetNumberOfPieces() const;
56
58 UFUNCTION(BlueprintCallable, Category="Appearance")
59 UMG_API void SetAnimateHorizontally(bool bInAnimateHorizontally);
60 UMG_API bool IsAnimateHorizontally() const;
61
63 UFUNCTION(BlueprintCallable, Category="Appearance")
64 UMG_API void SetAnimateVertically(bool bInAnimateVertically);
65 UMG_API bool IsAnimateVertically() const;
66
68 UFUNCTION(BlueprintCallable, Category = "Appearance")
69 UMG_API void SetAnimateOpacity(bool bInAnimateOpacity);
70 UMG_API bool IsAnimateOpacity() const;
71
72 UMG_API void SetImage(const FSlateBrush& Brush);
73 UMG_API const FSlateBrush& GetImage() const;
74
75 //~ Begin UWidget Interface
76 UMG_API virtual void SynchronizeProperties() override;
77 //~ End UWidget Interface
78
79 //~ Begin UVisual Interface
80 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
81 //~ End UVisual Interface
82
83#if WITH_EDITOR
84 UMG_API virtual const FText GetPaletteCategory() override;
85#endif
86
87protected:
88 //~ Begin UWidget Interface
89 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
90 //~ End UWidget Interface
91
92private:
94 SThrobber::EAnimation GetAnimation() const;
95
96private:
98 TSharedPtr<SThrobber> MyThrobber;
99};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Text.h:385
EAnimation
Definition SThrobber.h:35
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition SlateBrushAsset.h:17
FSlateBrush Brush
Definition SlateBrushAsset.h:23
Definition Throbber.h:20
Definition Widget.h:217
Definition SlateBrush.h:239