FTextBlockStyle

Represents the appearance of an [STextBlock](API\Runtime\Slate\Widgets\Text\STextBlock)

Windows
MacOS
Linux

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

Name Description

Public variable

FSlateColor

 

ColorAndOpacity

The color and opacity of this text

Public variable

FSlateFontInfo

 

Font

Font family and size to be used when displaying this text.

Public variable

FLinearColor

 

HighlightColor

The color of highlighted text

Public variable

FSlateBrush

 

HighlightShape

The shape of highlighted text

Public variable

FSlateColor

 

SelectedBackgroundColor

The background color of selected text

Public variable

FLinearColor

 

ShadowColorAndOpacity

The color and opacity of the shadow

Public variable

FVector2D

 

ShadowOffset

How much should the shadow be offset? An offset of 0 implies no shadow.

Public variable

FSlateBrush

 

StrikeBrush

The brush used to draw an strike through the text (if any)

Public variable

FSlateBrush

 

UnderlineBrush

The brush used to draw an underline under the text (if any)

Constructors

Name Description

Public function

FTextBlockStyle()

Destructors

Name Description

Public function Virtual

~FTextBlockStyle()

Functions

Name Description

Public function Static

const FTextB...

 

GetDefault()

Public function

FTextBlockSt...

 

SetColorAndOpacity

(
    const FSlateColor& InColorAndOpaci...
)

Public function

FTextBlockSt...

 

SetFont

(
    const UObject* InFontObject,
    const int32 InSize,
    const FName& InTypefaceFontName
)

Public function

FTextBlockSt...

 

SetFont

(
    TSharedPtr< const FCompositeFont > ...,
    const int32 InSize,
    const FName& InTypefaceFontName
)

Public function

FTextBlockSt...

 

SetFont

(
    const ANSICHAR* InFontName,
    uint16 InSize
)

Public function

FTextBlockSt...

 

SetFont

(
    const WIDECHAR* InFontName,
    uint16 InSize
)

Public function

FTextBlockSt...

 

SetFont

(
    const FString& InFontName,
    uint16 InSize
)

Public function

FTextBlockSt...

 

SetFont

(
    const FName& InFontName,
    uint16 InSize
)

Public function

FTextBlockSt...

 

SetFont

(
    const FSlateFontInfo& InFont
)

Public function

FTextBlockSt...

 

SetFontName

(
    const FString& InFontName
)

Public function

FTextBlockSt...

 

SetFontName

(
    const FName& InFontName
)

Public function

FTextBlockSt...

 

SetFontName

(
    const ANSICHAR* InFontName
)

Public function

FTextBlockSt...

 

SetFontName

(
    const WIDECHAR* InFontName
)

Public function

FTextBlockSt...

 

SetFontSize

(
    uint16 InSize
)

Public function

FTextBlockSt...

 

SetHighlightColor

(
    const FLinearColor& InHighlightCol...
)

Public function

FTextBlockSt...

 

SetHighlightShape

(
    const FSlateBrush& InHighlightShap...
)

Public function

FTextBlockSt...

 

SetSelectedBackgroundColor

(
    const FSlateColor& InSelectedBackg...
)

Public function

FTextBlockSt...

 

SetShadowColorAndOpacity

(
    const FLinearColor& InShadowColorA...
)

Public function

FTextBlockSt...

 

SetShadowOffset

(
    const FVector2D& InShadowOffset
)

Public function

FTextBlockSt...

 

SetStrikeBrush

(
    const FSlateBrush& InStrikeBrush
)

Public function

FTextBlockSt...

 

SetTypefaceFontName

(
    const FName& InTypefaceFontName
)

Public function

FTextBlockSt...

 

SetUnderlineBrush

(
    const FSlateBrush& InUnderlineBrus...
)

Public function

void

 

UnlinkColors()

Unlinks all colors in this style.

Overridden from FSlateWidgetStyle

Name Description

Public function Virtual Const

void

 

GetResources

(
    TArray< const FSlateBrush* >&...
)

Gets the brush resources associated with this style.

Public function Virtual Const

const FName

 

GetTypeName()

Gets the name of this style.

This method must be implemented by inherited structures.

Constants

Name

Description

TypeName

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss