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

Interface to the internal data for an FText. 更多...

#include <ITextData.h>

Public 成员函数

virtual const FString & GetDisplayString () const =0
 Get the string to use for display purposes. 更多...
 
virtual uint16 GetGlobalHistoryRevision () const =0
 Get the global history revision associated with this text instance.
 
virtual uint16 GetLocalHistoryRevision () const =0
 Get the local history revision associated with this text instance.
 
virtual FTextDisplayStringPtr GetLocalizedString () const =0
 Get the string pointer that was retrieved from the text localization manager. 更多...
 
virtual FTextDisplayStringPtr & GetMutableLocalizedString ()=0
 Get a mutable reference to the localized string associated with this text (used when loading/saving text).
 
virtual FTextHistory & GetMutableTextHistory ()=0
 Get a mutable reference to the history associated with this text (used when loading/saving text).
 
virtual const FTextHistory & GetTextHistory () const =0
 Get the history associated with this text.
 
virtual bool OwnsLocalizedString () const =0
 True if this text data owns its localized string pointer, and allows you to call GetMutableLocalizedString on it
 
virtual void PersistText ()=0
 Persist this text so that it can be stored in the localization manager.
 
template<typename THistoryType >
void SetTextHistory (THistoryType &&InHistory)
 Assign a new history object to this instance. 更多...
 

详细描述

Interface to the internal data for an FText.

Various derived types are optimized to reduce memory allocation overhead.

成员函数说明

◆ GetDisplayString()

virtual const FString & ITextData::GetDisplayString ( ) const
pure virtual

Get the string to use for display purposes.

This may have come from the localization manager, or may been generated at runtime (eg, via FText::AsNumber).

◆ GetLocalizedString()

virtual FTextDisplayStringPtr ITextData::GetLocalizedString ( ) const
pure virtual

Get the string pointer that was retrieved from the text localization manager.

Text that was generated at runtime by default will not have one of these, and you must call Persist() to generate one.

◆ SetTextHistory()

template<typename THistoryType >
void ITextData::SetTextHistory ( THistoryType &&  InHistory)
inline

Assign a new history object to this instance.

注解
: There is no RTTI on these types, so it is your responsibility to make sure that the history object you're assigning is of the correct type!

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