struct ImGuiTextFilter

Overview

#include <imgui.h>

struct ImGuiTextFilter
{
    // structs

    struct ImGuiTextRange;

    // fields

    char InputBuf[256];
    ImVector<ImGuiTextRange> Filters;
    int CountGrep;

    // construction

    ImGuiTextFilter(const char* default_filter = "");

    // methods

    IMGUI_API bool Draw(
        const char* label = "Filter(inc,-exc)",
        float width = 0.0f
        );

    IMGUI_API bool PassFilter(
        const char* text,
        const char* text_end = NULL
        ) const;

    IMGUI_API void Build();
    void Clear();
    bool IsActive() const;
};