TTF_SubStringFlags(3type)
β¨ TTF_SubStringFlags β¨
okay bestie, welcome to the TTF_SubStringFlags page from the SDL_ttf3 datatypes era π this is a lil type page, not a function page, so buckle up for flags and vibes only.
πΈ NAME πΈ
TTF_SubStringFlags β the flags for TTF_SubString π
π¦ HEADER FILE π¦
Defined in SDL3_ttf/SDL_ttf.h β that's where you go to find it, no cap.
β¨ SYNOPSIS β¨
#include "SDL3_ttf/SDL_ttf.h"
typedef Uint32 TTF_SubStringFlags;
#define TTF_SUBSTRING_DIRECTION_MASK 0x000000FF /**< The mask for the flow direction for this substring */
#define TTF_SUBSTRING_TEXT_START 0x00000100 /**< This substring contains the beginning of the text */
#define TTF_SUBSTRING_LINE_START 0x00000200 /**< This substring contains the beginning of line `line_index` */
#define TTF_SUBSTRING_LINE_END 0x00000400 /**< This substring contains the end of line `line_index` */
#define TTF_SUBSTRING_TEXT_END 0x00000800 /**< This substring contains the end of the text */
so it's literally just a Uint32 wearing a fancy name π
and then a whole lil squad of #defines living inside it. let's meet them one by one, they're all icons:
TTF_SUBSTRING_DIRECTION_MASKβ0x000000FFβ the mask for the flow direction for this substring π§ (iykyk, you mask the direction bits out of the flags)TTF_SUBSTRING_TEXT_STARTβ0x00000100β this substring contains the beginning of the text πTTF_SUBSTRING_LINE_STARTβ0x00000200β this substring contains the beginning of lineline_indexπTTF_SUBSTRING_LINE_ENDβ0x00000400β this substring contains the end of lineline_indexπTTF_SUBSTRING_TEXT_ENDβ0x00000800β this substring contains the end of the text π
not me staring at these hex values like they're a mood ring. they're not, bestie, they're bit flags. do not freestyle them. π
π AVAILABILITY π
this datatype has been available since SDL_ttf 3.0.0 β so if you're on anything older, that's a no from her.
π SEE ALSO π
like, go read TTF_SubString(3type) next, it's the main character this whole flag situation is serving π«Ά
and that's the whole page, bestie!! written by the SDL_ttf girlies, version SDL_ttf 3.2.2, for TTF_SubStringFlags(3type) β slay, ate, no crumbs, periodt πβ¨ππ¦πΈ
π¦ where this page comes from
- debian trixie: libsdl3-ttf-doc 3.2.2+ds-1 Β· Zlib
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- ubuntu questing: libsdl3-ttf-doc 3.2.2+ds-1
- ubuntu resolute: libsdl3-ttf-doc 3.2.2+ds-1build1 Β· Zlib
- ubuntu stonking: libsdl3-ttf-doc 3.2.2+ds-2 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms