| 1335 | Map->DestructKey(Container, KeyScratch); |
| 1336 | Memory::Free(KeyScratch); |
| 1337 | }); |
| 1338 | } |
| 1339 | ImGui::PopStyleVar(); |
| 1340 | if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) |
| 1341 | { |
| 1342 | ImGuiX::TextTooltip_Internal("Add map entry"); |
| 1343 | } |
| 1344 | |
| 1345 | ImGui::SameLine(); |
| 1346 | ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 4)); |
| 1347 | if (ImGuiX::FlatButton(LE_ICON_TRASH_CAN, ImVec2(18, 24), ArrayControlSeed)) |
| 1348 | { |
| 1349 | QueueMutation([Map, Container] { Map->Clear(Container); }); |
| 1350 | } |
| 1351 | ImGui::PopStyleVar(); |
| 1352 | if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) |
| 1353 | { |
| 1354 | ImGuiX::TextTooltip_Internal("Remove all map entries"); |
| 1355 | } |
no test coverage detected