Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
UI_TextData Struct Reference

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)
 

Detailed Description

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.

Member Data Documentation

◆ alignment

UI_TextAlignment UI_TextData::alignment

Text alignment (left, center, or right)

◆ font

TTF_Font* UI_TextData::font

Font used for text rendering.

◆ text

char* UI_TextData::text

Text content to display.

◆ textTexture

SDL_Texture* UI_TextData::textTexture

Pre-rendered text texture.


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