#include <ShapedTextCache.h>
|
| SLATE_API FShapedGlyphSequencePtr | FindShapedText (const FCachedShapedTextKey &InKey) const |
| |
| SLATE_API FShapedGlyphSequenceRef | AddShapedText (const FCachedShapedTextKey &InKey, const TCHAR *InText) |
| |
| SLATE_API FShapedGlyphSequenceRef | AddShapedText (const FCachedShapedTextKey &InKey, const TCHAR *InText, const TextBiDi::ETextDirection InTextDirection) |
| |
| SLATE_API FShapedGlyphSequenceRef | AddShapedText (const FCachedShapedTextKey &InKey, FShapedGlyphSequenceRef InShapedText) |
| |
| SLATE_API FShapedGlyphSequenceRef | FindOrAddShapedText (const FCachedShapedTextKey &InKey, const TCHAR *InText) |
| |
| SLATE_API FShapedGlyphSequenceRef | FindOrAddShapedText (const FCachedShapedTextKey &InKey, const TCHAR *InText, const TextBiDi::ETextDirection InTextDirection) |
| |
| SLATE_API FShapedGlyphSequenceRef | FindOrAddOverflowEllipsisText (const float InScale, const FShapedTextContext &InTextContext, const FSlateFontInfo &InFontInfo) |
| |
| SLATE_API void | Clear () |
| |
| TSharedPtr< FSlateFontCache > | GetFontCache () const |
| |
| | FShapedTextCache (FPrivateToken, const TSharedRef< FSlateFontCache > &InFontCache) |
| |
◆ FShapedTextCache()
◆ AddShapedText() [1/3]
Add the given shaped text instance to the cache, or generate a new instance and add that based on the parameters provided
- Parameters
-
| InKey | The key identifying the shaped text instance to add |
| InText | The text to shape. InKey may specify a sub-section of the entire text |
| InTextDirection | The text direction of all of the text to be shaped. If present we do a unidirectional shape, otherwise we do a bidirectional shape |
| InShapedText | The shaped text instance to add |
- Returns
- The shaped text instance
◆ AddShapedText() [2/3]
◆ AddShapedText() [3/3]
◆ Clear()
| void FShapedTextCache::Clear |
( |
| ) |
|
◆ Create()
Create a new shaped text cache
◆ FindOrAddOverflowEllipsisText()
Try and find an existing overflow shaped text instance, or add a new entry to the cache if one cannot be found. The overflow sequence is used to replace characters that are clipped.
- Returns
- The shaped text instance
◆ FindOrAddShapedText() [1/2]
Try and find an existing shaped text instance, or add a new entry to the cache if one cannot be found
- Parameters
-
| InKey | The key identifying the shaped text instance to find or add |
| InText | The text to shape if we can't find the shaped text in the cache. InKey may specify a sub-section of the entire text |
| InTextDirection | The text direction of all of the text to be shaped. If present we do a unidirectional shape, otherwise we do a bidirectional shape |
- Returns
- The shaped text instance
◆ FindOrAddShapedText() [2/2]
◆ FindShapedText()
Try and find an existing shaped text instance
- Parameters
-
| InKey | The key identifying the shaped text instance to find |
- Returns
- The shaped text instance, or null if it wasn't found or was stale
◆ GetFontCache()
Get the font cache used by this instance
The documentation for this class was generated from the following files: