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

#include <TextLayout.h>

Public Member Functions

SLATE_API FRunModel (const TSharedRef< IRun > &InRun)
 
SLATE_API TSharedRef< IRunGetRun () const
 
SLATE_API void BeginLayout ()
 
SLATE_API void EndLayout ()
 
SLATE_API FTextRange GetTextRange () const
 
SLATE_API void SetTextRange (const FTextRange &Value)
 
SLATE_API int16 GetBaseLine (float Scale) const
 
SLATE_API int16 GetMaxHeight (float Scale) const
 
SLATE_API FVector2D Measure (int32 BeginIndex, int32 EndIndex, float Scale, const FRunTextContext &InTextContext)
 
SLATE_API int8 GetKerning (int32 CurrentIndex, float Scale, const FRunTextContext &InTextContext)
 
SLATE_API TSharedRef< ILayoutBlockCreateBlock (const FBlockDefinition &BlockDefine, float InScale, const FLayoutBlockTextContext &InTextContext) const
 
SLATE_API void ClearCache ()
 
SLATE_API void AppendTextTo (FString &Text) const
 
SLATE_API void AppendTextTo (FString &Text, const FTextRange &Range) const
 

Static Public Member Functions

static SLATE_API int32 BinarySearchForBeginIndex (const TArray< FTextRange > &Ranges, int32 BeginIndex)
 
static SLATE_API int32 BinarySearchForEndIndex (const TArray< FTextRange > &Ranges, int32 RangeBeginIndex, int32 EndIndex)
 

Constructor & Destructor Documentation

◆ FRunModel()

FTextLayout::FRunModel::FRunModel ( const TSharedRef< IRun > &  InRun)

Member Function Documentation

◆ AppendTextTo() [1/2]

void FTextLayout::FRunModel::AppendTextTo ( FString &  Text) const

◆ AppendTextTo() [2/2]

void FTextLayout::FRunModel::AppendTextTo ( FString &  Text,
const FTextRange Range 
) const

◆ BeginLayout()

void FTextLayout::FRunModel::BeginLayout ( )

◆ BinarySearchForBeginIndex()

int32 FTextLayout::FRunModel::BinarySearchForBeginIndex ( const TArray< FTextRange > &  Ranges,
int32  BeginIndex 
)
static

◆ BinarySearchForEndIndex()

int32 FTextLayout::FRunModel::BinarySearchForEndIndex ( const TArray< FTextRange > &  Ranges,
int32  RangeBeginIndex,
int32  EndIndex 
)
static

◆ ClearCache()

void FTextLayout::FRunModel::ClearCache ( )

◆ CreateBlock()

TSharedRef< ILayoutBlock > FTextLayout::FRunModel::CreateBlock ( const FBlockDefinition BlockDefine,
float  InScale,
const FLayoutBlockTextContext InTextContext 
) const

◆ EndLayout()

void FTextLayout::FRunModel::EndLayout ( )

◆ GetBaseLine()

int16 FTextLayout::FRunModel::GetBaseLine ( float  Scale) const

◆ GetKerning()

int8 FTextLayout::FRunModel::GetKerning ( int32  CurrentIndex,
float  Scale,
const FRunTextContext InTextContext 
)

◆ GetMaxHeight()

int16 FTextLayout::FRunModel::GetMaxHeight ( float  Scale) const

◆ GetRun()

TSharedRef< IRun > FTextLayout::FRunModel::GetRun ( ) const

◆ GetTextRange()

FTextRange FTextLayout::FRunModel::GetTextRange ( ) const

◆ Measure()

FVector2D FTextLayout::FRunModel::Measure ( int32  BeginIndex,
int32  EndIndex,
float  Scale,
const FRunTextContext InTextContext 
)

◆ SetTextRange()

void FTextLayout::FRunModel::SetTextRange ( const FTextRange Value)

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