UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateEditableTextTypes::FCursorLineHighlighter Class Reference

#include <SlateEditableTextTypes.h>

+ Inheritance diagram for SlateEditableTextTypes::FCursorLineHighlighter:

Public Member Functions

SLATE_API void SetCursorBrush (const TAttribute< const FSlateBrush * > &InCursorBrush)
 
virtual SLATE_API int32 OnPaint (const FPaintArgs &Args, const FTextLayout::FLineView &Line, const FVector2D Offset, const float Width, const FTextBlockStyle &DefaultStyle, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override
 
- Public Member Functions inherited from ISlateLineHighlighter
virtual ~ISlateLineHighlighter ()
 
 UE_DEPRECATED (5.6, "Please use OnPaint with Offset (FVector2D) instead of OffsetX (float).") virtual int32 OnPaint(const FPaintArgs &Args
 
- Public Member Functions inherited from ILineHighlighter
virtual ~ILineHighlighter ()
 

Static Public Member Functions

static SLATE_API TSharedRef< FCursorLineHighlighterCreate (const FCursorInfo *InCursorInfo)
 

Protected Member Functions

SLATE_API FCursorLineHighlighter (const FCursorInfo *InCursorInfo)
 

Protected Attributes

const FCursorInfoCursorInfo
 
TAttribute< const FSlateBrush * > CursorBrush
 

Additional Inherited Members

- Public Attributes inherited from ISlateLineHighlighter
const FTextLayout::FLineViewLine
 
const FTextLayout::FLineView const float OffsetX
 
const FTextLayout::FLineView const float const float Width
 
const FTextLayout::FLineView const float const float const FTextBlockStyleDefaultStyle
 
const FTextLayout::FLineView const float const float const FTextBlockStyle const FGeometryAllottedGeometry
 
const FTextLayout::FLineView const float const float const FTextBlockStyle const FGeometry const FSlateRectMyCullingRect
 
const FTextLayout::FLineView const float const float const FTextBlockStyle const FGeometry const FSlateRect FSlateWindowElementListOutDrawElements
 
const FTextLayout::FLineView const float const float const FTextBlockStyle const FGeometry const FSlateRect FSlateWindowElementList int32 LayerId
 
const FTextLayout::FLineView const float const float const FTextBlockStyle const FGeometry const FSlateRect FSlateWindowElementList int32 const FWidgetStyleInWidgetStyle
 
const FTextLayout::FLineView const float const float const FTextBlockStyle const FGeometry const FSlateRect FSlateWindowElementList int32 const FWidgetStyle bool bParentEnabled const final
 

Detailed Description

Run highlighter used to draw the cursor

Constructor & Destructor Documentation

◆ FCursorLineHighlighter()

SlateEditableTextTypes::FCursorLineHighlighter::FCursorLineHighlighter ( const FCursorInfo InCursorInfo)
protected

Member Function Documentation

◆ Create()

TSharedRef< FCursorLineHighlighter > SlateEditableTextTypes::FCursorLineHighlighter::Create ( const FCursorInfo InCursorInfo)
static

◆ OnPaint()

int32 SlateEditableTextTypes::FCursorLineHighlighter::OnPaint ( const FPaintArgs Args,
const FTextLayout::FLineView Line,
const FVector2D  Offset,
const float  Width,
const FTextBlockStyle DefaultStyle,
const FGeometry AllottedGeometry,
const FSlateRect MyCullingRect,
FSlateWindowElementList OutDrawElements,
int32  LayerId,
const FWidgetStyle InWidgetStyle,
bool  bParentEnabled 
) const
overridevirtual

Implements ISlateLineHighlighter.

◆ SetCursorBrush()

void SlateEditableTextTypes::FCursorLineHighlighter::SetCursorBrush ( const TAttribute< const FSlateBrush * > &  InCursorBrush)

Member Data Documentation

◆ CursorBrush

TAttribute<const FSlateBrush*> SlateEditableTextTypes::FCursorLineHighlighter::CursorBrush
protected

Brush used to draw the cursor

◆ CursorInfo

const FCursorInfo* SlateEditableTextTypes::FCursorLineHighlighter::CursorInfo
protected

Cursor data that this highlighter is tracking


The documentation for this class was generated from the following files: