From cf0e992c00cd6910a912dc7d10572fecca944929 Mon Sep 17 00:00:00 2001 From: Jason Wilkins Date: Thu, 16 Mar 2017 03:56:06 -0500 Subject: [PATCH] resolved linker errors when compiling as a dll and using ImGuiTextEditCallbackData class --- imgui.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imgui.h b/imgui.h index 8af5074c136b..a6c405c4723a 100644 --- a/imgui.h +++ b/imgui.h @@ -1034,9 +1034,9 @@ struct ImGuiTextEditCallbackData int SelectionEnd; // // Read-write // NB: Helper functions for text manipulation. Calling those function loses selection. - void DeleteChars(int pos, int bytes_count); - void InsertChars(int pos, const char* text, const char* text_end = NULL); - bool HasSelection() const { return SelectionStart != SelectionEnd; } + IMGUI_API void DeleteChars(int pos, int bytes_count); + IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL); + bool HasSelection() const { return SelectionStart != SelectionEnd; } }; // Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().