logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TTF_Text - Text created with TTF_CreateText ()

Availability

       This struct is available since SDL_ttf 3.0.0.

Header File

       Defined in SDL3_ttf/SDL_ttf.h

Name

       TTF_Text - Text created with TTF_CreateText ()

See Also

(3), TTF_CreateText(3), (3), TTF_GetTextProperties(3), (3), TTF_DestroyText(3)

SDL_ttf                                           SDL_ttf 3.2.2                                  TTF_Text(3type)

Synopsis

#include"SDL3_ttf/SDL_ttf.h"typedefstructTTF_Text{char*text;/**<AcopyoftheUTF-8stringthatthistextobjectrepresents,usefulforlayout,debuggingandretrievingsubstringtext.Thisisupdatedwhenthetextobjectismodifiedandwillbefreedautomaticallywhentheobjectisdestroyed.*/intnum_lines;/**<Thenumberoflinesinthetext,0ifit'sempty*/intrefcount;/**<Applicationreferencecount,usedwhenfreeingsurface*/TTF_TextData*internal;/**<Private*/}TTF_Text;

See Also