Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FTextSnapshot Class Reference

#include <Text.h>

+ Collaboration diagram for FTextSnapshot:

Public Member Functions

 FTextSnapshot ()
 
 FTextSnapshot (const FText &InText)
 
bool IdenticalTo (const FText &InText) const
 
bool IsDisplayStringEqualTo (const FText &InText) const
 

Static Private Member Functions

static uint16 GetGlobalHistoryRevisionForText (const FText &InText)
 
static uint16 GetLocalHistoryRevisionForText (const FText &InText)
 

Private Attributes

TSharedPtr< ITextData, ESPMode::ThreadSafeTextDataPtr
 
FTextConstDisplayStringPtr LocalizedStringPtr
 
uint16 GlobalHistoryRevision = 0
 
uint16 LocalHistoryRevision = 0
 
uint32 Flags = 0
 

Detailed Description

A snapshot of an FText at a point in time that can be used to detect changes in the FText, including live-culture changes

Definition at line 1087 of file Text.h.

Constructor & Destructor Documentation

◆ FTextSnapshot() [1/2]

FTextSnapshot::FTextSnapshot ( )

◆ FTextSnapshot() [2/2]

FTextSnapshot::FTextSnapshot ( const FText & InText)
explicit

Member Function Documentation

◆ GetGlobalHistoryRevisionForText()

static uint16 FTextSnapshot::GetGlobalHistoryRevisionForText ( const FText & InText)
staticprivate

Get adjusted global history revision used for comparison

◆ GetLocalHistoryRevisionForText()

static uint16 FTextSnapshot::GetLocalHistoryRevisionForText ( const FText & InText)
staticprivate

Get adjusted local history revision used for comparison

◆ IdenticalTo()

bool FTextSnapshot::IdenticalTo ( const FText & InText) const

Check to see whether the given text is identical to the text this snapshot was made from

◆ IsDisplayStringEqualTo()

bool FTextSnapshot::IsDisplayStringEqualTo ( const FText & InText) const

Check to see whether the display string of the given text is identical to the display string this snapshot was made from

Member Data Documentation

◆ Flags

uint32 FTextSnapshot::Flags = 0
private

Flags with various information on what sort of FText we took a snapshot of

Definition at line 1121 of file Text.h.

◆ GlobalHistoryRevision

uint16 FTextSnapshot::GlobalHistoryRevision = 0
private

Global revision index of the text when we took the snapshot, or 0 if there was no history

Definition at line 1115 of file Text.h.

◆ LocalHistoryRevision

uint16 FTextSnapshot::LocalHistoryRevision = 0
private

Local revision index of the text when we took the snapshot, or 0 if there was no history

Definition at line 1118 of file Text.h.

◆ LocalizedStringPtr

FTextConstDisplayStringPtr FTextSnapshot::LocalizedStringPtr
private

The localized string of the text when we took the snapshot (if any)

Definition at line 1112 of file Text.h.

◆ TextDataPtr

TSharedPtr<ITextData, ESPMode::ThreadSafe> FTextSnapshot::TextDataPtr
private

A pointer to the text data for the FText that we took a snapshot of (used for an efficient pointer compare)

Definition at line 1109 of file Text.h.


The documentation for this class was generated from the following file: