Data structure for UI text elements. More...
#include <UI_text.h>
Public Attributes | |
| char * | text |
| Text content to display. | |
| SDL_Texture * | textTexture |
| Pre-rendered text texture. | |
| TTF_Font * | font |
| Font used for text rendering. | |
| UI_TextAlignment | alignment |
| Text alignment (left, center, or right) | |
Data structure for UI text elements.
This structure holds all necessary data for rendering and managing text UI elements, including the text content, texture, font and alignment properties.
| UI_TextAlignment UI_TextData::alignment |
Text alignment (left, center, or right)
| TTF_Font* UI_TextData::font |
Font used for text rendering.
| char* UI_TextData::text |
Text content to display.
| SDL_Texture* UI_TextData::textTexture |
Pre-rendered text texture.