TTF_SetTextPosition - Man Page
Set the position of a text object.
Header File
Defined in SDL3_ttf/SDL_ttf.h
Synopsis
#include "SDL3_ttf/SDL_ttf.h" bool TTF_SetTextPosition(TTF_Text *text, int x, int y);
Description
This can be used to position multiple text objects within a single wrapping text area.
This function may cause the internal text representation to be rebuilt.
Function Parameters
- text
the TTF_Text
to modify.- x
the x offset of the upper left corner of this text in pixels.
- y
the y offset of the upper left corner of this text in pixels.
Thread Safety
This function should be called on the thread that created the text.
Availability
This function is available since SDL_ttf 3.0.0.
See Also
·(3), TTF_GetTextPosition(3)
Referenced By
SDL_ttf 3.2.2 SDL_ttf3 FUNCTIONS