33#ifndef DVD_UTILITY_TEXT_LABEL_H_
34#define DVD_UTILITY_TEXT_LABEL_H_
44 constexpr const char*
BATANG =
"Batang.ttf";
45 constexpr const char*
DEJA_VU =
"DejaVuSans.ttf";
68 [[nodiscard]]
size_t getHash()
const override;
88 void text(
const char*
text,
const bool multiLine);
static FontNameHashMap s_fontName
hashMap< size_t, TextLabelStyle > TextLabelStyleMap
PROPERTY_RW(UColour4, colour, DefaultColours::BLACK_U8)
PROPERTY_RW(U32, alignFlag, 0u)
Check font-stash alignment for details.
PROPERTY_RW(F32, spacing, 0.f)
PROPERTY_RW(bool, bold, false)
static SharedMutex s_textLableStyleMutex
PROPERTY_RW(size_t, font, 0u)
static const TextLabelStyle & get(size_t textLabelStyleHash)
PROPERTY_RW(bool, italic, false)
static size_t s_defaultHashValue
static TextLabelStyleMap s_textLabelStyle
size_t getHash() const override
static const Str< 64 > & fontName(size_t fontNameHash)
PROPERTY_RW(U8, fontSize, 1u)
PROPERTY_RW(U8, width, 1u)
hashMap< size_t, Str< 64 > > FontNameHashMap
PROPERTY_RW(F32, blurAmount, 0.f)
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
Handle console commands that start with a forward slash.
std::shared_mutex SharedMutex
eastl::vector< Type > vector
hashAlg::unordered_map< K, V, HashFun, Predicate > hashMap
TextElementBatch()=default
vector< TextElement > BatchType
PROPERTY_RW(BatchType, data)
PROPERTY_R(TextType, text)
PROPERTY_R(size_t, textLabelStyleHash, 0)
vector< eastl::string > TextType
void text(const char *text, const bool multiLine)
PROPERTY_RW(RelativePosition2D, position)