10#include "SlateFontInfo.generated.h"
41 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=OutlineSettings, meta=(ClampMin=
"0", ClampMax=
"1024"))
45 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = OutlineSettings, meta = (DisplayName="
Mitered Corners"))
52 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = OutlineSettings)
53 bool bSeparateFillAlpha;
58 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = OutlineSettings)
59 bool bApplyOutlineToDropShadows;
66 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=OutlineSettings)
71 , bMiteredCorners(
false)
72 , bSeparateFillAlpha(
false)
73 , bApplyOutlineToDropShadows(
false)
74 , OutlineMaterial(
nullptr)
80 , bMiteredCorners(
false)
81 , bSeparateFillAlpha(
false)
82 , bApplyOutlineToDropShadows(
false)
83 , OutlineMaterial(nullptr)
84 , OutlineColor(InColor)
90 return OutlineSize ==
Other.OutlineSize
91 && bMiteredCorners ==
Other.bMiteredCorners
92 && bSeparateFillAlpha ==
Other.bSeparateFillAlpha;
98 OutlineSize ==
Other.OutlineSize &&
99 bMiteredCorners ==
Other.bMiteredCorners &&
100 bSeparateFillAlpha ==
Other.bSeparateFillAlpha &&
101 bApplyOutlineToDropShadows ==
Other.bApplyOutlineToDropShadows &&
102 OutlineMaterial ==
Other.OutlineMaterial &&
103 OutlineColor ==
Other.OutlineColor;
118 return OutlineSize > 0 && OutlineColor.A > 0;
121#if WITH_EDITORONLY_DATA
123 void PostSerialize(
const FArchive& Ar);
129#if WITH_EDITORONLY_DATA
145USTRUCT(BlueprintType, meta = (HasNativeMake =
"/Script/SlateRHIRenderer.SlateFontBlueprintLibrary.MakeSlateFontInfo"))
151 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
SlateStyleRules, meta=(AllowedClasses=
"/Script/Engine.Font", DisplayName=
"Font Family"))
166 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
SlateStyleRules, meta=(DisplayName="Typeface", EditCondition="FontObject"))
183 float SkewAmount = 0.0f;
197 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
SlateStyleRules, meta=(ClampMin=0, EditCondition = "bForceMonospaced==
true", EditConditionHides))
198 float MonospacedWidth = 1.0f;
200#if WITH_EDITORONLY_DATA
245 UE_DEPRECATED(5.6,
"Use constructor with FCompositeFont instead.")
287 && CompositeFont ==
Other.CompositeFont
288 && TypefaceFontName ==
Other.TypefaceFontName
289 && GetClampSize() ==
Other.GetClampSize();
294 return FontObject ==
Other.FontObject
295 && FontMaterial ==
Other.FontMaterial
297 && CompositeFont ==
Other.CompositeFont
298 && TypefaceFontName ==
Other.TypefaceFontName
300 && LetterSpacing ==
Other.LetterSpacing
301 && SkewAmount ==
Other.SkewAmount
302 && bForceMonospaced ==
Other.bForceMonospaced
303 && (bForceMonospaced ? MonospacedWidth ==
Other.MonospacedWidth :
true);
308 return IsIdenticalTo(
Other);
364#if WITH_EDITORONLY_DATA
381#if WITH_EDITORONLY_DATA
EFontHinting
Definition CompositeFont.h:25
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
EFontFallback
Definition SlateFontInfo.h:23
constexpr uint32 HashCombine(uint32 A, uint32 C)
Definition TypeHash.h:36
uint32 Size
Definition VulkanMemory.cpp:4034
Definition Engine.Build.cs:7
Definition Archive.h:1208
Definition NameTypes.h:617
Definition UnrealType.h:3087
Definition UObjectGlobals.h:2492
Definition SharedPointer.h:692
Definition SlateFontInfo.h:13
const uint32 RenderDPI
Definition SlateFontInfo.h:15
@ false
Definition radaudio_common.h:23
Definition CompositeFont.h:428
Definition SlateFontInfo.h:37
bool bMiteredCorners
Definition SlateFontInfo.h:46
bool IsIdenticalToForCaching(const FFontOutlineSettings &Other) const
Definition SlateFontInfo.h:87
bool IsVisible() const
Definition SlateFontInfo.h:116
static SLATECORE_API FFontOutlineSettings NoOutline
Definition SlateFontInfo.h:126
friend uint32 GetTypeHash(const FFontOutlineSettings &OutlineSettings)
Definition SlateFontInfo.h:106
bool bSeparateFillAlpha
Definition SlateFontInfo.h:53
FFontOutlineSettings(int32 InOutlineSize, FLinearColor InColor=FLinearColor::Black)
Definition SlateFontInfo.h:78
bool IsIdenticalTo(const FFontOutlineSettings &Other) const
Definition SlateFontInfo.h:95
int32 OutlineSize
Definition SlateFontInfo.h:42
static CORE_API const FLinearColor Black
Definition Color.h:458
Definition SlateFontInfo.h:147
~FSlateFontInfo()
Definition SlateFontInfo.h:218
int32 LetterSpacing
Definition SlateFontInfo.h:179
SLATECORE_API float GetClampSkew() const
Definition SlateFontInfo.cpp:242
SLATECORE_API float GetClampSize() const
Definition SlateFontInfo.cpp:237
TObjectPtr< const UObject > FontObject
Definition SlateFontInfo.h:152
TObjectPtr< UObject > FontMaterial
Definition SlateFontInfo.h:156
FFontOutlineSettings OutlineSettings
Definition SlateFontInfo.h:160
bool IsIdenticalTo(const FSlateFontInfo &Other) const
Definition SlateFontInfo.h:292
FName TypefaceFontName
Definition SlateFontInfo.h:167
friend uint32 GetLegacyTypeHash(const FSlateFontInfo &FontInfo)
Definition SlateFontInfo.h:332
TSharedPtr< const FCompositeFont > CompositeFont
Definition SlateFontInfo.h:163
bool operator==(const FSlateFontInfo &Other) const
Definition SlateFontInfo.h:306
friend uint32 GetTypeHash(const FSlateFontInfo &FontInfo)
Definition SlateFontInfo.h:350
Definition ObjectPtr.h:488
Definition StructOpsTypeTraits.h:11
@ WithSerializer
Definition StructOpsTypeTraits.h:23
@ WithPostSerialize
Definition StructOpsTypeTraits.h:25
Definition StructOpsTypeTraits.h:46