(This function is part of SDL_ttf, a separate library from SDL.)

TTF_HorizontalAlignment

The horizontal alignment used when rendering wrapped text.

Header File

Defined in <SDL3_ttf/SDL_ttf.h>

Syntax

typedef enum TTF_HorizontalAlignment
{
    TTF_HORIZONTAL_ALIGN_INVALID = -1,
    TTF_HORIZONTAL_ALIGN_LEFT,
    TTF_HORIZONTAL_ALIGN_CENTER,
    TTF_HORIZONTAL_ALIGN_RIGHT
} TTF_HorizontalAlignment;

Version

This enum is available since SDL_ttf 3.0.0.


CategoryAPI, CategoryAPIEnum, CategorySDLTTF