![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TokenizedMessage.h>
Inheritance diagram for FTokenizedMessage:Static Public Member Functions | |
| static CORE_API TSharedRef< FTokenizedMessage > | Create (EMessageSeverity::Type InSeverity, const FText &InMessageText=FText()) |
| static CORE_API FText | GetSeverityText (EMessageSeverity::Type InSeverity) |
| static CORE_API FName | GetSeverityIconName (EMessageSeverity::Type InSeverity) |
Protected Attributes | |
| TArray< TSharedRef< IMessageToken > > | MessageTokens |
| TSharedPtr< IMessageToken > | MessageLink |
Additional Inherited Members | |
Protected Member Functions inherited from TSharedFromThis< FTokenizedMessage > | |
| TSharedFromThis () | |
| TSharedFromThis (TSharedFromThis const &) | |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| ~TSharedFromThis () | |
Static Protected Member Functions inherited from TSharedFromThis< FTokenizedMessage > | |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
This class represents a rich tokenized message, such as would be used for compiler output with 'hyperlinks' to source file locations
|
inlineexplicit |
| TSharedRef< FTokenizedMessage > FTokenizedMessage::AddText | ( | const FText & | InText | ) |
Adds a text token to a message.
| InMessage | The message to insert a token into |
| InText | The text to insert as a token |
|
inline |
Adds a text token to a message as by calling FText::FormatOrdered
| InMessage | The message to insert a token into |
| InText | The text to insert as a token |
| TSharedRef< FTokenizedMessage > FTokenizedMessage::AddToken | ( | const TSharedRef< IMessageToken > & | InToken | ) |
Adds a token to a message.
| InMessage | The message to insert a token into |
| InToken | The token to insert |
| TSharedRef< FTokenizedMessage > FTokenizedMessage::Clone | ( | ) | const |
Clone this message.
|
static |
Creates a new FTokenizedMessage
| InSeverity | The severity of the message. |
| InMessageString | The string to display for this message. If this is not empty, then a string token will be added to this message. |
| FName FTokenizedMessage::GetIdentifier | ( | ) | const |
| TSharedPtr< IMessageToken > FTokenizedMessage::GetMessageLink | ( | ) | const |
Gets the token action associated with this messages as a whole. Should link to an associated element.
| const TArray< TSharedRef< IMessageToken > > & FTokenizedMessage::GetMessageTokens | ( | ) | const |
Get the tokens in this message
| EMessageSeverity::Type FTokenizedMessage::GetSeverity | ( | ) | const |
Gets the severity of this message
|
static |
Helper function for getting a severity as an icon name
| InSeverity | the severity to use |
|
static |
Helper function for getting a severity as text
| InSeverity | the severity to use |
Assigns Identifier for the message to the provided name
| void FTokenizedMessage::SetMessageLink | ( | const TSharedRef< IMessageToken > & | InToken | ) |
Sets up a token action for the message as a whole (not to be displayed... intended to be invoked from a double click).
| InToken | A token for the entire message to link to. |
| void FTokenizedMessage::SetSeverity | ( | const EMessageSeverity::Type | InSeverity | ) |
Sets the severity of this message
| InSeverity | The severity to set this message to |
| FText FTokenizedMessage::ToText | ( | ) | const |
Get this tokenized message as a string
|
protected |
A token associated with the entire message (doesn't display)
|
protected |
the array of message tokens this message contains