Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string get_text_input(std::size_t arbitrary_size)
- {
- std::vector<char> txt(arbitrary_size+1); // set aside space
- ImGui::Begin("Window");
- ImGui::InputTextMultiline("Textbox", buf.data(), arbitrary_size, ImVec2(-1.0f, ImGui::GetTextLineHeight() * 16), ImGuiInputTextFlags_AllowTabInput | (read_only ? ImGuiInputTextFlags_ReadOnly : 0));
- ImGui::End();
- return buf.data(); // will construct retval string
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement