ttfGetTextProperties function

int ttfGetTextProperties(
  1. Pointer<TtfText> text
)

Get the properties associated with a text object.

\param text the TTF_Text to query. \returns a valid property ID on success or 0 on failure; call SDL_GetError() for more information.

\threadsafety This function should be called on the thread that created the text.

\since This function is available since SDL_ttf 3.0.0.

extern SDL_DECLSPEC SDL_PropertiesID SDLCALL TTF_GetTextProperties(TTF_Text *text)

Implementation

int ttfGetTextProperties(Pointer<TtfText> text) {
  final ttfGetTextPropertiesLookupFunction = libSdl3Ttf.lookupFunction<
      Uint32 Function(Pointer<TtfText> text),
      int Function(Pointer<TtfText> text)>('TTF_GetTextProperties');
  return ttfGetTextPropertiesLookupFunction(text);
}