MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / DebugNodeMultiSelectState

Method DebugNodeMultiSelectState

include/imgui/imgui_widgets.cpp:8433–8449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8431}
8432
8433void ImGui::DebugNodeMultiSelectState(ImGuiMultiSelectState* storage)
8434{
8435#ifndef IMGUI_DISABLE_DEBUG_TOOLS
8436 const bool is_active = (storage->LastFrameActive >= GetFrameCount() - 2); // Note that fully clipped early out scrolling tables will appear as inactive here.
8437 if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); }
8438 bool open = TreeNode((void*)(intptr_t)storage->ID, "MultiSelect 0x%08X in '%s'%s", storage->ID, storage->Window ? storage->Window->Name : "N/A", is_active ? "" : " *Inactive*");
8439 if (!is_active) { PopStyleColor(); }
8440 if (!open)
8441 return;
8442 Text("RangeSrcItem = %" IM_PRId64 " (0x%" IM_PRIX64 "), RangeSelected = %d", storage->RangeSrcItem, storage->RangeSrcItem, storage->RangeSelected);
8443 Text("NavIdItem = %" IM_PRId64 " (0x%" IM_PRIX64 "), NavIdSelected = %d", storage->NavIdItem, storage->NavIdItem, storage->NavIdSelected);
8444 Text("LastSelectionSize = %d", storage->LastSelectionSize); // Provided by user
8445 TreePop();
8446#else
8447 IM_UNUSED(storage);
8448#endif
8449}
8450
8451//-------------------------------------------------------------------------
8452// [SECTION] Widgets: Multi-Select helpers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected