MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / AddInputCharactersUTF8

Method AddInputCharactersUTF8

ImGUI GLFW Tutorial/imgui/imgui.cpp:1156–1165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars)
1157{
1158 while (*utf8_chars != 0)
1159 {
1160 unsigned int c = 0;
1161 utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL);
1162 if (c != 0)
1163 InputQueueCharacters.push_back((ImWchar)c);
1164 }
1165}
1166
1167void ImGuiIO::ClearInputCharacters()
1168{

Callers

nothing calls this directly

Calls 2

ImTextCharFromUtf8Function · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected