Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCommonTextStyle
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonTextBlock.h |
| Include | #include "CommonTextBlock.h" |
Syntax
UCLASS&40;Abstract, Blueprintable, ClassGroup&61;UI, Meta&61;&40;Category&61;"Common UI"&41;&41;
class UCommonTextStyle : public UObject
Remarks
- All properties must be EditDefaultsOnly, BlueprintReadOnly !!! -- We return the CDO to blueprints, so we cannot allow any changes (blueprint doesn't support const variables)
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bUsesDropShadow | Whether or not the style uses a drop shadow | |
| FLinearColor | Color | The color of the text | |
| FSlateFontInfo | Font | The font to apply at each size | |
| float | LineHeightPercentage | The amount to scale each lines height by at each size | |
| FMargin | Margin | The amount of blank space left around the edges of text area at each size | |
| FLinearColor | ShadowColor | The drop shadow color | |
| FVector2D | ShadowOffset | The offset of the drop shadow at each size | |
| FSlateBrush | StrikeBrush | The brush used to draw an strike through the text (if any) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyToTextBlock
(
const TSharedRef< STextBlock >& TextBlock |
||
| void | GetColor
(
FLinearColor& OutColor |
||
| void | GetFont
(
FSlateFontInfo& OutFont |
||
| float | |||
| void | |||
| void | GetShadowColor
(
FLinearColor& OutColor |
||
| void | GetShadowOffset
(
FVector2D& OutShadowOffset |
||
| void | GetStrikeBrush
(
FSlateBrush& OutStrikeBrush |
||
| void | ToTextBlockStyle
(
FTextBlockStyle& OutTextBlockStyle |