ttfSetFontWrapAlignment function

void ttfSetFontWrapAlignment(
  1. Pointer<TtfFont> font,
  2. 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 ttfSetFontWrapAlignment(Pointer<TtfFont> font, int align) {
  final ttfSetFontWrapAlignmentLookupFunction = libSdl3Ttf.lookupFunction<
      Void Function(Pointer<TtfFont> font, Int32 align),
      void Function(
          Pointer<TtfFont> font, int align)>('TTF_SetFontWrapAlignment');
  return ttfSetFontWrapAlignmentLookupFunction(font, align);
}