Widget Studio
WSTypography.h
1/*
2* Copyright (c) 2021 THEIA INTERACTIVE. All rights reserved.
3*
4* Website: https://widgetstudio.design
5* Documentation: https://docs.widgetstudio.design
6* Support: marketplace@theia.io
7* Marketplace FAQ: https://marketplacehelp.epicgames.com
8*/
9
10#pragma once
11
12#include "CoreMinimal.h"
13#include "Engine/DataAsset.h"
14#include "Types/WSEnums.h"
15#include "Engine/Font.h"
16#include "WSTypography.generated.h"
17
21USTRUCT(BlueprintType)
23{
24 GENERATED_BODY()
25
26 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
27 EFontWeight Weight = EFontWeight::Regular;
28
29 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
30 int32 Size = 12;
31
32 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
33 int32 LetterSpacing = 0;
34};
35
39UCLASS(BlueprintType)
40class WIDGETSTUDIORUNTIME_API UWidgetStudioTypography : public UDataAsset
41{
42 GENERATED_BODY()
43
44public:
45
46 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
47 UFont* Typeface;
48
49 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
50 FFontStyle H1;
51
52 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
53 FFontStyle H2;
54
55 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
56 FFontStyle H3;
57
58 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
59 FFontStyle H4;
60
61 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
62 FFontStyle H5;
63
64 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
65 FFontStyle H6;
66
67 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
68 FFontStyle Subtitle1;
69
70 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
71 FFontStyle Subtitle2;
72
73 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
74 FFontStyle Body1;
75
76 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
77 FFontStyle Body2;
78
79 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
80 FFontStyle Button;
81
82 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
83 FFontStyle Caption;
84
85 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Typography")
86 FFontStyle Overline;
87};
88
89
Data asset that contains the current theme font and its styling.
Definition: WSTypography.h:41
Struct with font weight, size, and letter spacing.
Definition: WSTypography.h:23