MCPcopy Create free account
hub / github.com/JRickey/BattleShip / InputTextResizeCallback

Function InputTextResizeCallback

port/gui/UIWidgets.cpp:757–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757int InputTextResizeCallback(ImGuiInputTextCallbackData* data) {
758 std::string* value = (std::string*)data->UserData;
759 if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) {
760 value->resize(data->BufTextLen);
761 data->Buf = (char*)value->c_str();
762 }
763 return 0;
764}
765
766bool InputString(const char* label, std::string* value, const InputOptions& options) {
767 bool dirty = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected