MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / InputText

Function InputText

libraries/lib-app-base/src/gl-imgui.cpp:628–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626 }
627
628 bool InputText(const char* label, std::string * buf, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void * user_data)
629 {
630 char *buffer = new char[buf->size()+128];
631 std::strcpy(buffer, buf->c_str());
632 bool result = ImGui::InputText(label, buffer, buf->size()+128, flags, callback, user_data);
633 if (result) *buf = std::string(buffer);
634 delete [] buffer;
635 return result;
636 }
637
638 bool InputTextMultiline(const char* label, std::string* buf, const ImVec2 & size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void * user_data)
639 {

Callers 3

runMethod · 0.85
build_imguiFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 1

build_imguiFunction · 0.68