17 : _fontSize(fontSize),
35 const size_t previousHash =
_hash;
50 if (previousHash !=
_hash) {
59 bool styleFound =
false;
70 const TextLabelStyleMap::const_iterator it =
s_textLabelStyle.find(textLabelStyleHash);
89 : _textLabelStyleHash(textLabelStyleHash),
96 Util::Split<TextType, eastl::string>(
text,
'\n', _text);
105 _data.push_back(element);
static FontNameHashMap s_fontName
hashMap< size_t, TextLabelStyle > TextLabelStyleMap
static SharedMutex s_textLableStyleMutex
static const TextLabelStyle & get(size_t textLabelStyleHash)
static size_t s_defaultHashValue
static TextLabelStyleMap s_textLabelStyle
size_t getHash() const override
static const Str< 64 > & fontName(size_t fontNameHash)
hashMap< size_t, Str< 64 > > FontNameHashMap
TextLabelStyle(const char *font, const UColour4 &colour, U8 fontSize)
constexpr const char * DROID_SERIF
constexpr const char * BATANG
constexpr const char * DIVIDE_DEFAULT
constexpr const char * DROID_SERIF_ITALIC
constexpr const char * DROID_SERIF_BOLD
constexpr const char * DEJA_VU
void Hash_combine(size_t &seed, const T &v, const Rest &... rest) noexcept
a la Boost
Handle console commands that start with a forward slash.
std::lock_guard< mutex > LockGuard
void insert(eastl::vector< T, A1 > &target, const eastl::vector< T, A2 > &source)
std::shared_mutex SharedMutex
std::shared_lock< mutex > SharedLock
constexpr U64 _ID(const char *const str, const U64 value=val_64_const) noexcept
virtual size_t getHash() const
TextElementBatch()=default
void text(const char *text, const bool multiLine)