UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RunUtils Namespace Reference

Functions

SLATE_API ETextHitPoint CalculateTextHitPoint (const int32 InIndex, const FTextRange &InTextRange, const TextBiDi::ETextDirection InTextDirection)
 
SLATE_API FTextRange CalculateOffsetMeasureRange (const int32 InOffset, const FTextRange &InTextRange, const TextBiDi::ETextDirection InTextDirection)
 

Function Documentation

◆ CalculateOffsetMeasureRange()

FTextRange RunUtils::CalculateOffsetMeasureRange ( const int32  InOffset,
const FTextRange InTextRange,
const TextBiDi::ETextDirection  InTextDirection 
)

Calculate the range that will measure to the given index, based on the given range and text direction

Parameters
InOffsetThe offset value to calculate the range for
InTextRangeThe range of text to apply the offset to
InTextDirectionThe text direction of all the text within the given range
Returns
The calculated measure range

◆ CalculateTextHitPoint()

ETextHitPoint RunUtils::CalculateTextHitPoint ( const int32  InIndex,
const FTextRange InTextRange,
const TextBiDi::ETextDirection  InTextDirection 
)

Calculate the correct hit-point for the given index, based on the given range and text direction

Parameters
InIndexThe index to calculate the hit-point for
InTextRangeThe range of text that the index was taken from
InTextDirectionThe text direction of all the text within the given range
Returns
The calculated hit-point