_font cache processtext entry
This commit is contained in:
@@ -92,6 +92,46 @@ API_STRUCT(NoDefault) struct FLAXENGINE_API FontLineCache
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(FontLineCache);
|
||||
|
||||
FontLineCache() = default;
|
||||
|
||||
FontLineCache(const FontLineCache& other)
|
||||
{
|
||||
Location = other.Location;
|
||||
Size = other.Size;
|
||||
FirstCharIndex = other.FirstCharIndex;
|
||||
LastCharIndex = other.LastCharIndex;
|
||||
CharacterEntries.Set(other.CharacterEntries.Get(), other.CharacterEntries.Count());
|
||||
}
|
||||
|
||||
FontLineCache(FontLineCache&& other) noexcept
|
||||
{
|
||||
Location = other.Location;
|
||||
Size = other.Size;
|
||||
FirstCharIndex = other.FirstCharIndex;
|
||||
LastCharIndex = other.LastCharIndex;
|
||||
CharacterEntries = MoveTemp(other.CharacterEntries);
|
||||
}
|
||||
|
||||
FontLineCache& operator=(const FontLineCache& other)
|
||||
{
|
||||
Location = other.Location;
|
||||
Size = other.Size;
|
||||
FirstCharIndex = other.FirstCharIndex;
|
||||
LastCharIndex = other.LastCharIndex;
|
||||
CharacterEntries.Set(other.CharacterEntries.Get(), other.CharacterEntries.Count());
|
||||
return *this;
|
||||
}
|
||||
|
||||
FontLineCache& operator=(FontLineCache&& other) noexcept
|
||||
{
|
||||
Location = other.Location;
|
||||
Size = other.Size;
|
||||
FirstCharIndex = other.FirstCharIndex;
|
||||
LastCharIndex = other.LastCharIndex;
|
||||
CharacterEntries = MoveTemp(other.CharacterEntries);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The root position of the line (upper left corner).
|
||||
/// </summary>
|
||||
@@ -111,12 +151,17 @@ API_STRUCT(NoDefault) struct FLAXENGINE_API FontLineCache
|
||||
/// The last character index (from the input text), inclusive.
|
||||
/// </summary>
|
||||
API_FIELD() int32 LastCharIndex;
|
||||
|
||||
/// <summary>
|
||||
/// Character entries for each character.
|
||||
/// </summary>
|
||||
API_FIELD() Array<struct FontCharacterEntry> CharacterEntries;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct TIsPODType<FontLineCache>
|
||||
{
|
||||
enum { Value = true };
|
||||
enum { Value = false };
|
||||
};
|
||||
|
||||
// Font glyph metrics:
|
||||
|
||||
Reference in New Issue
Block a user