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

Method DebugNodeMultiSelectState

include/imgui/imgui_widgets.cpp:8559–8575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8557}
8558
8559void ImGui::DebugNodeMultiSelectState(ImGuiMultiSelectState* storage)
8560{
8561#ifndef IMGUI_DISABLE_DEBUG_TOOLS
8562 const bool is_active = (storage->LastFrameActive >= GetFrameCount() - 2); // Note that fully clipped early out scrolling tables will appear as inactive here.
8563 if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); }
8564 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*");
8565 if (!is_active) { PopStyleColor(); }
8566 if (!open)
8567 return;
8568 Text("RangeSrcItem = %" IM_PRId64 " (0x%" IM_PRIX64 "), RangeSelected = %d", storage->RangeSrcItem, storage->RangeSrcItem, storage->RangeSelected);
8569 Text("NavIdItem = %" IM_PRId64 " (0x%" IM_PRIX64 "), NavIdSelected = %d", storage->NavIdItem, storage->NavIdItem, storage->NavIdSelected);
8570 Text("LastSelectionSize = %d", storage->LastSelectionSize); // Provided by user
8571 TreePop();
8572#else
8573 IM_UNUSED(storage);
8574#endif
8575}
8576
8577//-------------------------------------------------------------------------
8578// [SECTION] Widgets: Multi-Select helpers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected