| 8446 | } |
| 8447 | |
| 8448 | void ImGui::DebugNodeMultiSelectState(ImGuiMultiSelectState* storage) |
| 8449 | { |
| 8450 | #ifndef IMGUI_DISABLE_DEBUG_TOOLS |
| 8451 | const bool is_active = (storage->LastFrameActive >= GetFrameCount() - 2); // Note that fully clipped early out scrolling tables will appear as inactive here. |
| 8452 | if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } |
| 8453 | 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*"); |
| 8454 | if (!is_active) { PopStyleColor(); } |
| 8455 | if (!open) |
| 8456 | return; |
| 8457 | Text("RangeSrcItem = %" IM_PRId64 " (0x%" IM_PRIX64 "), RangeSelected = %d", storage->RangeSrcItem, storage->RangeSrcItem, storage->RangeSelected); |
| 8458 | Text("NavIdItem = %" IM_PRId64 " (0x%" IM_PRIX64 "), NavIdSelected = %d", storage->NavIdItem, storage->NavIdItem, storage->NavIdSelected); |
| 8459 | Text("LastSelectionSize = %d", storage->LastSelectionSize); // Provided by user |
| 8460 | TreePop(); |
| 8461 | #else |
| 8462 | IM_UNUSED(storage); |
| 8463 | #endif |
| 8464 | } |
| 8465 | |
| 8466 | //------------------------------------------------------------------------- |
| 8467 | // [SECTION] Widgets: Multi-Select helpers |
nothing calls this directly
no test coverage detected