Choose your operating system:
Windows
macOS
Linux
| TSharedFromThis
|
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Framework/Text/TextLayout.h |
Include |
#include "Framework/Text/TextLayout.h" |
class FTextLayout : public TSharedFromThis< FTextLayout >
Name | Description | ||
---|---|---|---|
|
CachedLayoutGeneration |
||
|
TAttribute< FSt... |
DebugSourceInfo |
Information given to use by our an external source (typically our owner widget) to help identify who owns this text layout in the case of an error |
|
DirtyFlags |
Whether parameters on the layout have changed which requires the view be updated. |
|
|
TSharedRef< IBr... |
GraphemeBreakIterator |
The iterator to use to detect grapheme cluster boundaries |
|
Justification |
How the text should be aligned with the margin. |
|
|
TSharedPtr< IBr... |
LineBreakIterator |
The iterator to use to detect appropriate soft-wrapping points for lines |
|
float |
LineHeightPercentage |
The percentage to modify a line height by. |
|
LineModels |
The models for the lines of text. A LineModel represents a single string with no manual breaks. |
|
|
LineViews |
The views for the lines of text. |
|
|
LineViewsToJustify |
The indices for all of the line views that require justification. |
|
|
Margin |
The size of the margins to put about the text. This is an unscaled value. |
|
|
float |
Scale |
The scale to draw the text at |
|
ScrollOffset |
The scroll offset of the text layout from the parent widget |
|
|
TUniquePtr< Tex... |
TextBiDiDetection |
Unicode BiDi text detection |
|
TextFlowDirection |
How should the text within this layout be flowed? |
|
|
TextLayoutSize |
The final size of the text layout on screen. |
|
|
TextOverflowPolicyOverride |
Override for the text overflow policy. If unset, the style is used |
|
|
TextShapingMethod |
The method used to shape the text within this layout |
|
|
TransformPolicy |
The transform policy used by this text layout. |
|
|
ViewSize |
The size of the text layout that can actually be seen from the parent widget |
|
|
TSharedRef< IBr... |
WordBreakIterator |
The iterator to use to detect word boundaries |
|
WrappingPolicy |
The wrapping policy used by this text layout. |
|
|
float |
WrappingWidth |
The width that the text should be wrap at. If 0 or negative no wrapping occurs. |
Name | Description | |
---|---|---|
|
FTextLayout() |
Name | Description | |
---|---|---|
|
~FTextLayout() |
Name | Description | ||
---|---|---|---|
|
AddLine ( |
||
|
AddLineHighlight ( |
Adds a single line highlight to the existing set of highlights. |
|
|
AddLines ( |
||
|
AddRunRenderer ( |
Adds a single run renderer to the existing set of renderers. |
|
|
BeginLayout() |
Notifies all Runs that we are beginning to generate a new layout. |
|
|
BeginLineLayout ( |
Notifies all Runs on the given line is beginning to have a new layout generated. |
|
|
CalculateLineTextDirection ( |
Calculates the text direction for the given line based upon the current shaping method and document flow direction |
|
|
ETextJustify... |
CalculateLineViewVisualJustification ( |
Calculates the visual justification for the given line view |
|
CalculateTextDirection() |
Calculates the text direction for each line based upon the current shaping method and document flow direction When changing the shaping method, or document flow direction, all the lines need to be dirtied (see DirtyAllLineModels(ELineModelDirtyState::TextBaseDirection)) |
|
|
ClearLineHighlights() |
Clears all line highlights |
|
|
ClearLines() |
||
|
ClearRunRenderers() |
Clears all run renderers |
|
|
ClearView() |
Clears the current layouts view information. |
|
|
TSharedRef< ... |
CreateDefaultTextRun ( |
Called to generate a new empty text run for this text layout |
|
CreateLineWrappingCache ( |
Create the wrapping cache for the given line based upon the current scale |
|
|
CreateWrappingCache() |
Create the wrapping cache for the current text based upon the current scale Each line keeps its own cached state, so needs to be cleared when changing the text within a line When changing the scale, all the lines need to be cleared (see DirtyAllLineModels(ELineModelDirtyState::WrappingInformation)) |
|
|
DirtyAllLineModels ( |
Set the given dirty flags on all line models in this layout |
|
|
DirtyLayout() |
||
|
DirtyRunLayout ( |
||
|
EndLayout() |
Notifies all Runs that the layout has finished generating. |
|
|
EndLineLayout ( |
Notifies all Runs on the given line has finished having a new layout generated. |
|
|
FlushLineTextShapingCache ( |
Flushes the text shaping cache for the given line |
|
|
FlushTextShapingCache() |
Flushes the text shaping cache for each line |
|
|
GetAsText ( |
||
|
GetAsText ( |
||
|
GetDrawSize() |
Get the size of the text layout, including any lines which extend beyond the wrapping boundaries (eg, lines with lots of trailing whitespace, or lines with no break candidates) @note This value is scaled |
|
|
FTextSelecti... |
GetGraphemeAt ( |
|
|
ETextJustify... |
GetJustification() |
|
|
GetLineCount() |
||
|
float |
GetLineHeightPercentage() |
|
|
const TArray... |
GetLineModels() |
|
|
GetLineViewIndexForTextLocation ( |
||
|
const TArray... |
GetLineViews() |
|
|
GetLocationAt ( |
||
|
GetMargin() |
||
|
float |
GetScale() |
|
|
GetSelectionAsText ( |
||
|
GetSize() |
Get the size of the text layout, including any lines which extend beyond the wrapping boundaries (eg, lines with lots of trailing whitespace, or lines with no break candidates) @note This value is unscaled |
|
|
ETextFlowDir... |
GetTextFlowDirection() |
|
|
FTextLocatio... |
GetTextLocationAt ( |
|
|
FTextLocatio... |
GetTextLocationAt ( |
|
|
GetTextOffsetLocations ( |
Constructs an array containing the mappings between the text that would be returned by GetAsText, and the internal FTextLocation points used within this text layout |
|
|
ETextShaping... |
GetTextShapingMethod() |
|
|
ETextTransfo... |
GetTransformPolicy() |
@note This option is destructive to the model text, so changing it requires refreshing the text layout from its marshaller |
|
ETextJustify... |
GetVisualJustification() |
Get the visual justification for this document (based on the visual justification used by the first line of text) |
|
FTextSelecti... |
GetWordAt ( |
|
|
GetWrappedDrawSize() |
Get the size of the text layout after the text has been wrapped, and including the first piece of trailing whitespace for any given soft-wrapped line @note This value is scaled |
|
|
GetWrappedSize() |
Get the size of the text layout after the text has been wrapped, and including the first piece of trailing whitespace for any given soft-wrapped line @note This value is unscaled |
|
|
ETextWrappin... |
GetWrappingPolicy() |
|
|
float |
GetWrappingWidth() |
|
|
InsertAt ( |
||
|
InsertAt ( |
||
|
InsertAt ( |
||
|
IsEmpty() |
||
|
IsLayoutDirty() |
||
|
JoinLineWithNextLine ( |
||
|
RemoveAt ( |
||
|
RemoveLine ( |
||
|
RemoveLineHighlight ( |
Removes a single line highlight to the existing set of highlights. |
|
|
RemoveRunRenderer ( |
Removes a single run renderer to the existing set of renderers. |
|
|
SetDebugSourceInfo ( |
Set the information used to help identify who owns this text layout in the case of an error |
|
|
SetJustification ( |
||
|
SetLineBreakIterator ( |
Set the iterator to use to detect appropriate soft-wrapping points for lines (or null to go back to using the default) |
|
|
SetLineHeightPercentage ( |
||
|
SetLineHighlights ( |
Replaces the current set of line highlights with the provided highlights. |
|
|
SetMargin ( |
||
|
SetRunRenderers ( |
Replaces the current set of run renderers with the provided renderers. |
|
|
SetScale ( |
||
|
SetTextFlowDirection ( |
||
|
SetTextOverflowPolicy ( |
||
|
SetTextShapingMethod ( |
||
|
SetTransformPolicy ( |
||
|
SetVisibleRegion |
||
|
SetWrappingPolicy ( |
||
|
SetWrappingWidth ( |
||
|
SplitLineAt ( |
||
|
TransformLineText ( |
Transform the given line model text based on the active transform policy. |
|
|
UpdateHighlights() |
||
|
UpdateIfNeeded() |
Updates the TextLayout's if any changes have occurred since the last update. |
|
|
UpdateLayout() |
Name |
Description |
|
---|---|---|
|
ELineModelDirtyState |
|
|
ETextLayoutDirtyState |
|
|
FBlockDefinition |
|
|
FBreakCandidate |
|
|
FLineModel |
|
|
FLineView |
|
|
FLineViewHighlight |
|
|
FNewLineData |
|
|
FRunModel |
|
|
FTextLayoutSize |
|
|
FTextOffsetLocations |
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 | Description | ||
---|---|---|---|
|
AddLine ( |
Please use the version of AddLine that takes an FNewLineData parameter. |