Function ImGui::InputText#

Function Documentation#

bool ImGui::InputText(std::string_view label, std::string *str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void *userData = nullptr)#

Draw an input text field with ImGui.

Remark

Headless mode: This function is not available in headless mode.

Parameters:
  • label – Label for the text field.

  • str – String to store input to.

  • flags – Additional flags for the input field.

  • callback – Callback to implement additional functionality.

  • userData – Pointer to provide user data.

Returns:

True if input text changed, false otherwise.