ttfSetTextWrapWhitespaceVisible function
Set whether whitespace should be visible when wrapping a text object.
If the whitespace is visible, it will take up space for purposes of alignment and wrapping. This is good for editing, but looks better when centered or aligned if whitespace around line wrapping is hidden. This defaults false.
\param text the TTF_Text to modify. \param visible true to show whitespace when wrapping text, false to hide it. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function should be called on the thread that created the text.
\since This function is available since SDL_ttf 3.0.0.
\sa TTF_TextWrapWhitespaceVisible
extern SDL_DECLSPEC bool SDLCALL TTF_SetTextWrapWhitespaceVisible(TTF_Text *text, bool visible)
Implementation
bool ttfSetTextWrapWhitespaceVisible(Pointer<TtfText> text, bool visible) {
final ttfSetTextWrapWhitespaceVisibleLookupFunction =
libSdl3Ttf.lookupFunction<
Uint8 Function(Pointer<TtfText> text, Uint8 visible),
int Function(Pointer<TtfText> text,
int visible)>('TTF_SetTextWrapWhitespaceVisible');
return ttfSetTextWrapWhitespaceVisibleLookupFunction(text, visible ? 1 : 0) ==
1;
}