TTF_SetTextPosition - Set the position of a text object.
Contents
Availability
This function is available since SDL_ttf 3.0.0.
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.
Header File
Defined in SDL3_ttf/SDL_ttf.h
Name
TTF_SetTextPosition - Set the position of a text object.
See Also
•(3), TTF_GetTextPosition(3) SDL_ttf SDL_ttf 3.2.2 TTF_SetTextPosition(3)
Synopsis
#include"SDL3_ttf/SDL_ttf.h"boolTTF_SetTextPosition(TTF_Text*text,intx,inty);
Thread Safety
This function should be called on the thread that created the text.
