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