Skip to content

Commit

Permalink
resolved linker errors when compiling as a dll and using ImGuiTextEdi…
Browse files Browse the repository at this point in the history
…tCallbackData class
  • Loading branch information
jawilkins committed Mar 16, 2017
1 parent 2fce77c commit cf0e992
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit cf0e992

Please sign in to comment.