table of contents
other versions
- experimental 3~git20241102~f20defe+ds-1
TTF_GetTextSubStringsForRange(3) | SDL_ttf3 FUNCTIONS | TTF_GetTextSubStringsForRange(3) |
NAME¶
TTF_GetTextSubStringsForRange - Get the substrings of a text object that contain a range of text.
HEADER FILE¶
Defined in SDL3_ttf/SDL_ttf.h
SYNOPSIS¶
#include "SDL3_ttf/SDL_ttf.h"
TTF_SubString ** TTF_GetTextSubStringsForRange(TTF_Text *text, int offset, int length, int *count);
FUNCTION PARAMETERS¶
RETURN VALUE¶
( TTF_SubString ) Returns a NULL terminated array of substring pointers or NULL on failure; call SDL_GetError() for more information. This is a single allocation that should be freed with SDL_free() when it is no longer needed.
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.
SDL_ttf 3.0.0 | SDL_ttf |