Navigation
API > API/Runtime > API/Runtime/Slate
Cache of shaped text
| Name | FShapedTextCache |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Text/ShapedTextCache.h |
| Include Path | #include "Framework/Text/ShapedTextCache.h" |
Syntax
class FShapedTextCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FShapedTextCache
(
FPrivateToken, |
Constructor | Framework/Text/ShapedTextCache.h |
Structs
| Name | Remarks |
|---|---|
| FPrivateToken | Private token only allows members or friends to call MakeShared. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedShapedText | TMap< FCachedShapedTextKey, FShapedGlyphSequencePtr > | Mapping between a cache key and the corresponding shaped text | Framework/Text/ShapedTextCache.h | |
| FontCachePtr | TWeakPtr< FSlateFontCache > | Font cache to use when shaping text | Framework/Text/ShapedTextCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FShapedGlyphSequenceRef AddShapedText
(
const FCachedShapedTextKey& InKey, |
Add the given shaped text instance to the cache, or generate a new instance and add that based on the parameters provided | Framework/Text/ShapedTextCache.h | |
FShapedGlyphSequenceRef AddShapedText
(
const FCachedShapedTextKey& InKey, |
Framework/Text/ShapedTextCache.h | ||
FShapedGlyphSequenceRef AddShapedText
(
const FCachedShapedTextKey& InKey, |
Framework/Text/ShapedTextCache.h | ||
void Clear() |
Clear this cache | Framework/Text/ShapedTextCache.h | |
FShapedGlyphSequenceRef FindOrAddOverflowEllipsisText
(
const float InScale, |
Try and find an existing overflow shaped text instance, or add a new entry to the cache if one cannot be found. | Framework/Text/ShapedTextCache.h | |
FShapedGlyphSequenceRef FindOrAddShapedText
(
const FCachedShapedTextKey& InKey, |
Try and find an existing shaped text instance, or add a new entry to the cache if one cannot be found | Framework/Text/ShapedTextCache.h | |
FShapedGlyphSequenceRef FindOrAddShapedText
(
const FCachedShapedTextKey& InKey, |
Framework/Text/ShapedTextCache.h | ||
FShapedGlyphSequencePtr FindShapedText
(
const FCachedShapedTextKey& InKey |
Try and find an existing shaped text instance | Framework/Text/ShapedTextCache.h | |
TSharedPtr< FSlateFontCache > GetFontCache() |
Get the font cache used by this instance | Framework/Text/ShapedTextCache.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FShapedTextCacheRef Create
(
const TSharedRef< FSlateFontCache >& InFontCache |
Create a new shaped text cache | Framework/Text/ShapedTextCache.h |