ImGuiTextFilter::Draw helper return bool and resplit when filter is modified

This commit is contained in:
ocornut
2015-09-14 13:03:20 +01:00
parent f9928e96c7
commit ec7eb05e88
2 changed files with 8 additions and 5 deletions

View File

@ -868,7 +868,7 @@ struct ImGuiTextFilter
ImGuiTextFilter(const char* default_filter = "");
void Clear() { InputBuf[0] = 0; Build(); }
void Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build
bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build
bool PassFilter(const char* text, const char* text_end = NULL) const;
bool IsActive() const { return !Filters.empty(); }
IMGUI_API void Build();