ISlateTextLineHighlighter

Run highlighter used to draw lines

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Text/SlateTextUnderlineLineHighlighter.h

Include

#include "Framework/Text/SlateTextUnderlineLineHighlighter.h"

Syntax

class ISlateTextLineHighlighter : public ISlateLineHighlighter

Remarks

Run highlighter used to draw lines

Variables

Name Description

Protected variable

FSlateColor

 

ColorAndOpacity

The color to draw the underline (typically matches the text its associated with)

Protected variable

FSlateFontInfo

 

FontInfo

Font the underline is associated with

Protected variable

FSlateBrush

 

LineBrush

Brush used to draw the line

Protected variable

FLinearColor

 

ShadowColorAndOpacity

The color to draw the shadow

Protected variable

FVector2D

 

ShadowOffset

Offset at which to draw the shadow (if any)

Constructors

Name Description

Protected function

ISlateTextLineHighlighter

(
    const FSlateBrush& InLineBrush,
    const FSlateFontInfo& InFontInfo,
    const FSlateColor InColorAndOpacity,
    const FVector2D InShadowOffset,
    const FLinearColor InShadowColorAnd...
)

Functions

Name Description

Protected function Const

void

 

GetLineMetrics

(
    const float InFontScale,
    int16& OutLinePos,
    int16& OutLineThickness
)

Overridden from ISlateLineHighlighter

Name Description

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FTextLayout::FLineView& Line,
    const float OffsetX,
    const float Width,
    const FTextBlockStyle& DefaultStyl...,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

Constants

Name

Description

DefaultZIndex