SDL_ClearComposition(3)
π SDL_ClearComposition(3) β SDL3 FUNCTIONS π
okay so bestie, welcome to the SDL3 keyboard corner π
this page is literally about SDL_ClearComposition, and it's giving "make the IME go away but don't kill the whole text-input subsystem" energy. no cap.
β¨ NAME β¨
SDL_ClearComposition β Dismiss the composition window/IME without disabling the subsystem. π
π SYNOPSIS π
#include <SDL3/SDL_keyboard.h>
bool SDL_ClearComposition(SDL_Window *window);
πΈ FUNCTION PARAMETERS πΈ
windowβ the window to affect. πͺ
β RETURN VALUE β
Returns true on success or false on failure; call SDL_GetError() for more information. π
π§ THREAD SAFETY π§
This function should only be called on the main thread. π¨
Like, do not try to be cute and call it from a worker thread, bestie. main character thread only. π
π AVAILABILITY π
This function is available since SDL 3.2.0. β¨
π₯ SEE ALSO π₯
and that's the whole vibe π«Ά this came from Simple Directmedia Layer, version SDL 3.4.18, and the footer didn't hand me a date so I'm not gonna make one up β periodt. π π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms