Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Styling
Inheritance Hierarchy
- FSlateWidgetStyle
- FTextBlockStyle
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Styling/SlateTypes.h |
| Include | #include "Styling/SlateTypes.h" |
Syntax
struct FTextBlockStyle : public FSlateWidgetStyle
Remarks
Represents the appearance of an STextBlock
Variables
| Type | Name | Description | |
|---|---|---|---|
| FSlateColor | ColorAndOpacity | The color and opacity of this text | |
| FSlateFontInfo | Font | Font family and size to be used when displaying this text. | |
| FSlateColor | HighlightColor | The color of highlighted text | |
| FSlateBrush | HighlightShape | The shape of highlighted text | |
| ETextOverflowPolicy | OverflowPolicy | Determines what happens to text that is clipped and doesn't fit within the clip rect of a text widget | |
| FSlateColor | SelectedBackgroundColor | The background color of selected text | |
| FLinearColor | ShadowColorAndOpacity | The color and opacity of the shadow | |
| FDeprecateSlateVector2D | ShadowOffset | How much should the shadow be offset? An offset of 0 implies no shadow. | |
| FSlateBrush | StrikeBrush | The brush used to draw an strike through the text (if any) | |
| ETextTransformPolicy | TransformPolicy | The Text Transform Policy (defaults to None) | |
| FSlateBrush | UnderlineBrush | The brush used to draw an underline under the text (if any) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FTextBlockStyle & | GetDefault () |
||
| bool | IsIdenticalTo
(
const FTextBlockStyle::CompareParams& InNewStyleParams |
Checks to see whether this style is identical to another. | |
| bool | IsIdenticalTo
(
const FTextBlockStyle& InOther |
Checks to see whether this style is identical to another. | |
| FTextBlockStyle & | SetColorAndOpacity
(
const FSlateColor& InColorAndOpacity |
||
| FTextBlockStyle & | |||
| FTextBlockStyle & | SetFont
(
TSharedPtr< const FCompositeFont > InCompositeFont, |
||
| FTextBlockStyle & | SetFont
(
const ANSICHAR* InFontName, |
||
| FTextBlockStyle & | SetFont
(
const WIDECHAR* InFontName, |
||
| FTextBlockStyle & | |||
| FTextBlockStyle & | |||
| FTextBlockStyle & | SetFont
(
const FSlateFontInfo& InFont |
||
| FTextBlockStyle & | SetFontMaterial
(
UObject* InMaterial |
||
| FTextBlockStyle & | SetFontName
(
const FString& InFontName |
||
| FTextBlockStyle & | SetFontName
(
const FName& InFontName |
||
| FTextBlockStyle & | SetFontName
(
const ANSICHAR* InFontName |
||
| FTextBlockStyle & | SetFontName
(
const WIDECHAR* InFontName |
||
| FTextBlockStyle & | SetFontOutlineMaterial
(
UObject* InMaterial |
||
| FTextBlockStyle & | SetFontSize
(
float InSize |
||
| FTextBlockStyle & | SetHighlightColor
(
const FSlateColor& InHighlightColor |
||
| FTextBlockStyle & | SetHighlightShape
(
const FSlateBrush& InHighlightShape |
||
| FTextBlockStyle & | SetOverflowPolicy
(
const ETextOverflowPolicy& InOverflowPolicy |
||
| FTextBlockStyle & | SetSelectedBackgroundColor
(
const FSlateColor& InSelectedBackgroundColor |
||
| FTextBlockStyle & | SetShadowColorAndOpacity
(
const FLinearColor& InShadowColorAndOpacity |
||
| FTextBlockStyle & | SetShadowOffset
(
const UE::Slate::FDeprecateVector2DParameter& InShadowOffset |
||
| FTextBlockStyle & | SetStrikeBrush
(
const FSlateBrush& InStrikeBrush |
||
| FTextBlockStyle & | SetTransformPolicy
(
const ETextTransformPolicy& InTransformPolicy |
||
| FTextBlockStyle & | SetTypefaceFontName
(
const FName& InTypefaceFontName |
||
| FTextBlockStyle & | SetUnderlineBrush
(
const FSlateBrush& InUnderlineBrush |
||
| void | UnlinkColors () |
Unlinks all colors in this style. |
Overridden from FSlateWidgetStyle
| Type | Name | Description | |
|---|---|---|---|
| void | GetResources
(
TArray< const FSlateBrush* >& OutBrushes |
Gets the brush resources associated with this style. | |
| const FName | GetTypeName () |
Gets the name of this style.This method must be implemented by inherited structures. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| CompareParams | Helper struct to compare two text styles without constructing a temporary text style |
Constants
| Name | Description |
|---|---|
| TypeName |