From 2814763b97478dd7963f6ffb144582f9836de993 Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Tue, 13 Apr 2021 21:23:42 +0200 Subject: [PATCH] std::string compatible imgui text input --- ImGuiToolkit.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ImGuiToolkit.h b/ImGuiToolkit.h index 86f38d5..18ef008 100644 --- a/ImGuiToolkit.h +++ b/ImGuiToolkit.h @@ -63,6 +63,7 @@ namespace ImGuiToolkit void SetAccentColor (accent_color color); struct ImVec4 HighlightColor (bool active = true); + bool InputText(const char* label, std::string* str); bool InputTextMultiline(const char* label, std::string* str, const ImVec2& size = ImVec2(0, 0), int linesize = 0); }