setWrapAlignment method

void setWrapAlignment(
  1. int align
)

Set a font's current wrap alignment option.

This updates any TTF_Text objects using this font.

\param font the font to set a new wrap alignment option on. \param align the new wrap alignment option.

\threadsafety This function should be called on the thread that created the font.

\since This function is available since SDL_ttf 3.0.0.

\sa TTF_GetFontWrapAlignment

extern SDL_DECLSPEC void SDLCALL TTF_SetFontWrapAlignment(TTF_Font *font, TTF_HorizontalAlignment align)

Implementation

void setWrapAlignment(int align) {
  ttfSetFontWrapAlignment(this, align);
}