Platform IME: add ImGuiPlatformImeData::WantVisible, hide IME when not used. (#2589)

This commit is contained in:
actboy168
2022-01-05 13:20:54 +01:00
committed by ocornut
parent 1cbfe93520
commit 29a8ee0826
4 changed files with 10 additions and 0 deletions

View File

@ -2832,7 +2832,10 @@ struct ImGuiViewport
// (Optional) Support for IME (Input Method Editor) via the io.SetPlatformImeDataFn() function.
struct ImGuiPlatformImeData
{
bool WantVisible; // A widget wants the IME to be visible
ImVec2 InputPos; // Position of the input cursor
ImGuiPlatformImeData() { memset(this, 0, sizeof(*this)); }
};
//-----------------------------------------------------------------------------