|
|
@ -34,6 +34,7 @@ static int InputTextCallback(ImGuiInputTextCallbackData* data)
|
|
|
|
|
|
|
|
|
|
|
|
bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
|
|
|
|
bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
|
|
|
|
flags |= ImGuiInputTextFlags_CallbackResize;
|
|
|
|
flags |= ImGuiInputTextFlags_CallbackResize;
|
|
|
|
|
|
|
|
|
|
|
|
InputTextCallback_UserData cb_user_data;
|
|
|
|
InputTextCallback_UserData cb_user_data;
|
|
|
@ -45,6 +46,7 @@ bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags f
|
|
|
|
|
|
|
|
|
|
|
|
bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
|
|
|
|
bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0);
|
|
|
|
flags |= ImGuiInputTextFlags_CallbackResize;
|
|
|
|
flags |= ImGuiInputTextFlags_CallbackResize;
|
|
|
|
|
|
|
|
|
|
|
|
InputTextCallback_UserData cb_user_data;
|
|
|
|
InputTextCallback_UserData cb_user_data;
|
|
|
|