Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FTextLayout
A mapping between the offsets into the text as a flat string (with line-breaks), and the internal lines used within a text layout
| Name | FTextOffsetLocations |
| Type | struct |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Text/TextLayout.h |
| Include Path | #include "Framework/Text/TextLayout.h" |
Syntax
struct FTextOffsetLocations
Structs
| Name | Remarks |
|---|---|
| FOffsetEntry |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OffsetData | TArray< FOffsetEntry > | This array contains one entry for each line in the document; the array index is the line number, and the entry contains the index in the flat string that marks the start of the line, along with the length of the line (not including any trailing | ||
| character) | Framework/Text/TextLayout.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetTextLength() |
Framework/Text/TextLayout.h | ||
FTextLocation OffsetToTextLocation
(
const int32 InOffset |
Framework/Text/TextLayout.h | ||
int32 TextLocationToOffset
(
const FTextLocation& InLocation |
Framework/Text/TextLayout.h |