MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ApplySelectionRequests

Method ApplySelectionRequests

3rdparty/imgui/src/imgui_demo.cpp:2652–2658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2650 Selections[src].Clear();
2651 }
2652 void ApplySelectionRequests(ImGuiMultiSelectIO* ms_io, int side)
2653 {
2654 // In this example we store item id in selection (instead of item index)
2655 Selections[side].UserData = Items[side].Data;
2656 Selections[side].AdapterIndexToStorageId = [](ImGuiSelectionBasicStorage* self, int idx) { ImGuiID* items = (ImGuiID*)self->UserData; return items[idx]; };
2657 Selections[side].ApplyRequests(ms_io);
2658 }
2659 static int IMGUI_CDECL CompareItemsByValue(const void* lhs, const void* rhs)
2660 {
2661 const int* a = (const int*)lhs;

Callers

nothing calls this directly

Calls 1

ApplyRequestsMethod · 0.80

Tested by

no test coverage detected