Skip to content

c# example for ImGuiTextFilter #107

@zaafar

Description

@zaafar

I was trying to use ImGuiTextFilter but couldn't find a c# example of it. I looked at the ImGui demo code example and tried to replicate that on ImGui.NET but failed. Here's the code I was using, let me know how to use this feature.

ImGuiTextFilter testing = new ImGuiTextFilter();
testing.draw()

I did find the ImGuiTextFilterPtr struct/class but not sure how to use it.

reference c++ eample

static ImGuiTextFilter filter;
filter.draw();
        const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" };
        for (int i = 0; i < IM_ARRAYSIZE(lines); i++)
            if (filter.PassFilter(lines[i]))
                ImGui::BulletText("%s", lines[i]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions