sdlSetTextInputRect function

void sdlSetTextInputRect(
  1. Pointer<SdlRect> rect
)

Set the rectangle used to type Unicode text inputs. Native input methods will place a window with word suggestions near it, without covering the text being inputted.

To start text input in a given location, this function is intended to be called before SDL_StartTextInput, although some platforms support moving the rectangle even while text input (and a composition) is active.

Note: If you want to use the system native IME window, try setting hint SDL_HINT_IME_SHOW_UI to 1, otherwise this function won't give you any feedback.

\param rect the SDL_Rect structure representing the rectangle to receive text (ignored if NULL)

\since This function is available since SDL 2.0.0.

\sa SDL_StartTextInput

extern DECLSPEC void SDLCALL SDL_SetTextInputRect(const SDL_Rect *rect)

Implementation

void sdlSetTextInputRect(Pointer<SdlRect> rect) {
  final sdlSetTextInputRectLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<SdlRect> rect),
      void Function(Pointer<SdlRect> rect)>('SDL_SetTextInputRect');
  return sdlSetTextInputRectLookupFunction(rect);
}