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.
|
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).
|
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.
|
inline |
Assign a new history object to this instance.