MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / DebugLogMultiSelectRequests

Function DebugLogMultiSelectRequests

imgui_tiny_app/imgui/imgui_widgets.cpp:7888–7897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7886//-------------------------------------------------------------------------
7887
7888static void DebugLogMultiSelectRequests(const char* function, const ImGuiMultiSelectIO* io)
7889{
7890 ImGuiContext& g = *GImGui;
7891 IM_UNUSED(function);
7892 for (const ImGuiSelectionRequest& req : io->Requests)
7893 {
7894 if (req.Type == ImGuiSelectionRequestType_SetAll) IMGUI_DEBUG_LOG_SELECTION("[selection] %s: Request: SetAll %d (= %s)\n", function, req.Selected, req.Selected ? "SelectAll" : "Clear");
7895 if (req.Type == ImGuiSelectionRequestType_SetRange) IMGUI_DEBUG_LOG_SELECTION("[selection] %s: Request: SetRange %" IM_PRId64 "..%" IM_PRId64 " (0x%" IM_PRIX64 "..0x%" IM_PRIX64 ") = %d (dir %d)\n", function, req.RangeFirstItem, req.RangeLastItem, req.RangeFirstItem, req.RangeLastItem, req.Selected, req.RangeDirection);
7896 }
7897}
7898
7899static ImRect CalcScopeRect(ImGuiMultiSelectTempData* ms, ImGuiWindow* window)
7900{

Callers 2

BeginMultiSelectMethod · 0.85
EndMultiSelectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected