MCPcopy Create free account
hub / github.com/RenderKit/embree / ImGuiTextFilter

Method ImGuiTextFilter

tutorials/common/imgui/imgui.cpp:2375–2384  ·  view source on GitHub ↗

Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"

Source from the content-addressed store, hash-verified

2373
2374// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
2375ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077
2376{
2377 InputBuf[0] = 0;
2378 CountGrep = 0;
2379 if (default_filter)
2380 {
2381 ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf));
2382 Build();
2383 }
2384}
2385
2386bool ImGuiTextFilter::Draw(const char* label, float width)
2387{

Callers

nothing calls this directly

Calls 1

ImStrncpyFunction · 0.85

Tested by

no test coverage detected