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