5#include "Blueprint/WidgetTree.h"
6#include "Components/Widget.h"
12UWidget* GetTypedParentWidget(
const UWidget*,
const TSubclassOf<UWidget>);
13UWidget* GetTypedChildWidget(
const UWidget*,
const TSubclassOf<UWidget>);
16T* GetTypedParentWidget(
const UWidget* Widget)
18 static_assert(TIsDerivedFrom<T, UWidget>::IsDerived,
"T must be derived from UWidget");
19 return static_cast<T*
>(GetTypedParentWidget(Widget, T::StaticClass()));
22T* GetTypedChildWidget(
const UWidget* Widget)
24 static_assert(TIsDerivedFrom<T, UWidget>::IsDerived,
"T must be derived from UWidget");
25 return static_cast<T*
>(GetTypedChildWidget(Widget, T::StaticClass()));
34FString TruncateWithEllipsis(
const FString&, uint32 MaxWidth,
const FSlateFontInfo& FontInfo);
36uint32 HashStringWithMax(
const FString&, uint32 Max = 16);
38FLinearColor ChooseColorForString(
const FString&);
40void HideDefaultMenuBackground(UMenuAnchor* Anchor);