ImGuiTextFilter() can take a default filter string

This commit is contained in:
ocornut
2015-02-15 13:50:04 +00:00
parent d58ded3acb
commit c1f20f03c5
2 changed files with 12 additions and 4 deletions

View File

@ -651,7 +651,7 @@ struct ImGuiTextFilter
ImVector<TextRange> Filters;
int CountGrep;
ImGuiTextFilter();
ImGuiTextFilter(const char* default_filter = "");
void Clear() { InputBuf[0] = 0; Build(); }
void Draw(const char* label = "Filter (inc,-exc)", float width = -1.0f); // Helper calling InputText+Build
bool PassFilter(const char* val) const;