SDL_HINT_IME_IMPLEMENTED_UI(3)
π SDL_HINT_IME_IMPLEMENTED_UI π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_HINT_IME_IMPLEMENTED_UI β a variable that tells everyone what IME UI elements your app can actually show off. π
β¨ NAME β¨
SDL_HINT_IME_IMPLEMENTED_UI β a variable describing what IME UI elements the application can display. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_IME_IMPLEMENTED_UI "SDL_IME_IMPLEMENTED_UI"
π¦ DESCRIPTION π¦
so here's the tea, bestie. by default, IME UI is handled using native components by the OS where possible. iconic behaviour, honestly. BUT β and this is the plot twist β that can interfere with stuff, or just straight-up not be visible when exclusive fullscreen mode is being used. π the OS is out here doing its best and you literally cannot see it. tragic.
so you set this variable to a comma separated list containing the following items, and everybody knows what's up:
- "none" or "0" β the application can't render any IME elements, and native UI should be used. (default) β no cap, this is where you start.
- "composition" β the application handles
SDL_EVENT_TEXT_EDITINGevents and can render the composition text. she's doing it herself, we love a self-sufficient queen. π - "candidates" β the application handles
SDL_EVENT_TEXT_EDITING_CANDIDATESand can render the candidate list. the dropdown? handled. periodt. π
β οΈ real talk: this hint should be set before SDL is initialized. set it early or it's not gonna hit, fr fr.
β AVAILABILITY β
this hint is available since SDL 3.2.0. been here since then and she ate every single time. π₯
Simple Directmedia Layer π SDL 3.4.18 πΈ SDL_HINT_IME_IMPLEMENTED_UI(3) β mwah, that's the page, go forth and set your hints before init bestie, ily, bye! π«Άβ¨π
π¦ 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