libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
mx::CacheKey Struct Reference

Cache key combining text content and colour. More...

#include <vk_text.hpp>

Collaboration diagram for mx::CacheKey:
[legend]

Public Member Functions

bool operator== (const CacheKey &other) const

Public Attributes

std::string text
uint8_t r
uint8_t g
uint8_t b
uint8_t a

Detailed Description

Cache key combining text content and colour.

Definition at line 54 of file vk_text.hpp.

Member Function Documentation

◆ operator==()

bool mx::CacheKey::operator== ( const CacheKey & other) const
inline

Definition at line 57 of file vk_text.hpp.

References a, b, g, r, and text.

Member Data Documentation

◆ a

uint8_t mx::CacheKey::a

Definition at line 56 of file vk_text.hpp.

Referenced by mx::CacheKeyHash::operator()(), and operator==().

◆ b

uint8_t mx::CacheKey::b

Definition at line 56 of file vk_text.hpp.

Referenced by mx::CacheKeyHash::operator()(), and operator==().

◆ g

uint8_t mx::CacheKey::g

Definition at line 56 of file vk_text.hpp.

Referenced by mx::CacheKeyHash::operator()(), and operator==().

◆ r

uint8_t mx::CacheKey::r

Definition at line 56 of file vk_text.hpp.

Referenced by mx::CacheKeyHash::operator()(), and operator==().

◆ text

std::string mx::CacheKey::text

Definition at line 55 of file vk_text.hpp.

Referenced by mx::CacheKeyHash::operator()(), and operator==().


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