Moved colored implementation to their own functions

To minimise source code modifications, colored input text has been moved to their own functions.
The ImFont is still modified tho.
This commit is contained in:
Nemirtingas 2019-08-03 14:37:03 +02:00
parent 804355fa54
commit d2a75db930
6 changed files with 845 additions and 16 deletions

5
ImGui/imgui_user.h Normal file
View file

@ -0,0 +1,5 @@
namespace ImGui
{
IMGUI_API bool ColoredInputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL);
IMGUI_API bool ColoredInputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL);
}