table of contents
other versions
- experimental 3~git20241102~f20defe+ds-1
TTF_SubString(3type) | SDL_ttf3 DATATYPES | TTF_SubString(3type) |
NAME¶
TTF_SubString - The representation of a substring within text.
HEADER FILE¶
Defined in SDL3_ttf/SDL_ttf.h
SYNOPSIS¶
#include "SDL3_ttf/SDL_ttf.h"
typedef struct TTF_SubString { TTF_SubStringFlags flags; /**< The flags for this substring */ int offset; /**< The byte offset from the beginning of the text */ int length; /**< The byte length starting at the offset */ int line_index; /**< The index of the line that contains this substring */ int cluster_index; /**< The internal cluster index, used for quickly iterating */ SDL_Rect rect; /**< The rectangle, relative to the top left of the text, containing the substring */ } TTF_SubString;
AVAILABILITY¶
This struct is available since SDL_ttf 3.0.0.
SEE ALSO¶
•(3), TTF_GetNextTextSubString(3), •(3), TTF_GetPreviousTextSubString(3), •(3), TTF_GetTextSubString(3), •(3), TTF_GetTextSubStringForLine(3), •(3), TTF_GetTextSubStringForPoint(3), •(3), TTF_GetTextSubStringsForRange(3)
SDL_ttf 3.0.0 | SDL_ttf |