34 return !(*
this ==
Other);
116 return FontCachePtr.
Pin();
121 struct FPrivateToken {
explicit FPrivateToken() =
default; };
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
constexpr uint32 HashCombine(uint32 A, uint32 C)
Definition TypeHash.h:36
Definition ShapedTextCache.h:55
SLATE_API void Clear()
Definition ShapedTextCache.cpp:112
FShapedTextCache(FPrivateToken, const TSharedRef< FSlateFontCache > &InFontCache)
Definition ShapedTextCache.h:125
SLATE_API FShapedGlyphSequencePtr FindShapedText(const FCachedShapedTextKey &InKey) const
Definition ShapedTextCache.cpp:9
static FShapedTextCacheRef Create(const TSharedRef< FSlateFontCache > &InFontCache)
Definition ShapedTextCache.h:58
SLATE_API FShapedGlyphSequenceRef FindOrAddShapedText(const FCachedShapedTextKey &InKey, const TCHAR *InText)
Definition ShapedTextCache.cpp:71
TSharedPtr< FSlateFontCache > GetFontCache() const
Definition ShapedTextCache.h:114
SLATE_API FShapedGlyphSequenceRef FindOrAddOverflowEllipsisText(const float InScale, const FShapedTextContext &InTextContext, const FSlateFontInfo &InFontInfo)
Definition ShapedTextCache.cpp:95
SLATE_API FShapedGlyphSequenceRef AddShapedText(const FCachedShapedTextKey &InKey, const TCHAR *InText)
Definition ShapedTextCache.cpp:21
Definition FontCache.h:756
Definition UnrealString.h.inl:34
Definition SharedPointer.h:1295
UE_FORCEINLINE_HINT TSharedPtr< ObjectType, Mode > Pin() const &
Definition SharedPointer.h:1512
Definition ShapedTextCache.h:140
SLATE_API FShapedGlyphSequenceRef GetShapedTextSubSequence(const FShapedTextCacheRef &InShapedTextCache, const FCachedShapedTextKey &InRunKey, const FTextRange &InTextRange, const TCHAR *InText, const TextBiDi::ETextDirection InTextDirection)
Definition ShapedTextCache.cpp:238
SLATE_API int8 GetShapedGlyphKerning(const FShapedTextCacheRef &InShapedTextCache, const FCachedShapedTextKey &InRunKey, const int32 InGlyphIndex, const TCHAR *InText)
Definition ShapedTextCache.cpp:219
SLATE_API FVector2D MeasureShapedText(const FShapedTextCacheRef &InShapedTextCache, const FCachedShapedTextKey &InRunKey, const FTextRange &InMeasureRange, const TCHAR *InText)
Definition ShapedTextCache.cpp:118
SLATE_API int32 FindCharacterIndexAtOffset(const FShapedTextCacheRef &InShapedTextCache, const FCachedShapedTextKey &InRunKey, const FTextRange &InTextRange, const TCHAR *InText, const int32 InHorizontalOffset)
Definition ShapedTextCache.cpp:138
ETextDirection
Definition Text.h:1413
Definition ShapedTextCache.h:14
bool operator!=(const FCachedShapedTextKey &Other) const
Definition ShapedTextCache.h:32
FTextRange TextRange
Definition ShapedTextCache.h:47
friend uint32 GetTypeHash(const FCachedShapedTextKey &Key)
Definition ShapedTextCache.h:37
FSlateFontInfo FontInfo
Definition ShapedTextCache.h:50
float Scale
Definition ShapedTextCache.h:48
FShapedTextContext TextContext
Definition ShapedTextCache.h:49
FCachedShapedTextKey(const FTextRange &InTextRange, const float InScale, const FShapedTextContext &InTextContext, const FSlateFontInfo &InFontInfo)
Definition ShapedTextCache.h:16
bool operator==(const FCachedShapedTextKey &Other) const
Definition ShapedTextCache.h:24
Definition SlateFontInfo.h:147
bool IsIdenticalTo(const FSlateFontInfo &Other) const
Definition SlateFontInfo.h:292