engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FShapedTextCache类 参考

Cache of shaped text 更多...

#include <ShapedTextCache.h>

Public 成员函数

FShapedGlyphSequenceRef AddShapedText (const FCachedShapedTextKey &InKey, const TCHAR *InText)
 Add the given shaped text instance to the cache, or generate a new instance and add that based on the parameters provided 更多...
 
void Clear ()
 Clear this cache
 
FShapedGlyphSequenceRef FindOrAddShapedText (const FCachedShapedTextKey &InKey, const TCHAR *InText)
 Try and find an existing shaped text instance, or add a new entry to the cache if one cannot be found 更多...
 
FShapedGlyphSequencePtr FindShapedText (const FCachedShapedTextKey &InKey) const
 Try and find an existing shaped text instance 更多...
 
TSharedPtr< FSlateFontCache > GetFontCache () const
 Get the font cache used by this instance
 

静态 Public 成员函数

static FShapedTextCacheRef Create (const TSharedRef< FSlateFontCache > &InFontCache)
 Create a new shaped text cache
 

详细描述

Cache of shaped text

成员函数说明

◆ AddShapedText()

FShapedGlyphSequenceRef FShapedTextCache::AddShapedText ( const FCachedShapedTextKey &  InKey,
const TCHAR *  InText 
)

Add the given shaped text instance to the cache, or generate a new instance and add that based on the parameters provided

参数
InKeyThe key identifying the shaped text instance to add
InTextThe text to shape. InKey may specify a sub-section of the entire text
InTextDirectionThe text direction of all of the text to be shaped. If present we do a unidirectional shape, otherwise we do a bidirectional shape
InShapedTextThe shaped text instance to add
返回
The shaped text instance

◆ FindOrAddShapedText()

FShapedGlyphSequenceRef FShapedTextCache::FindOrAddShapedText ( const FCachedShapedTextKey &  InKey,
const TCHAR *  InText 
)

Try and find an existing shaped text instance, or add a new entry to the cache if one cannot be found

参数
InKeyThe key identifying the shaped text instance to find or add
InTextThe text to shape if we can't find the shaped text in the cache. InKey may specify a sub-section of the entire text
InTextDirectionThe text direction of all of the text to be shaped. If present we do a unidirectional shape, otherwise we do a bidirectional shape
返回
The shaped text instance

◆ FindShapedText()

FShapedGlyphSequencePtr FShapedTextCache::FindShapedText ( const FCachedShapedTextKey &  InKey) const

Try and find an existing shaped text instance

参数
InKeyThe key identifying the shaped text instance to find
返回
The shaped text instance, or null if it wasn't found or was stale

该类的文档由以下文件生成: