imgui_stdlib.cpp (imgui-1.86) | : | imgui_stdlib.cpp (imgui-1.87) | ||
---|---|---|---|---|
// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) | // dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) | |||
// This is also an example of how you may wrap your own similar types. | // This is also an example of how you may wrap your own similar types. | |||
// Compatibility: | ||||
// - std::string support is only guaranteed to work from C++11. | ||||
// If you try to use it pre-C++11, please share your findings (w/ info about c | ||||
ompiler/architecture) | ||||
// Changelog: | // Changelog: | |||
// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string | // - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string | |||
#include "imgui.h" | #include "imgui.h" | |||
#include "imgui_stdlib.h" | #include "imgui_stdlib.h" | |||
struct InputTextCallback_UserData | struct InputTextCallback_UserData | |||
{ | { | |||
std::string* Str; | std::string* Str; | |||
ImGuiInputTextCallback ChainCallback; | ImGuiInputTextCallback ChainCallback; | |||
End of changes. 1 change blocks. | ||||
5 lines changed or deleted | 0 lines changed or added |