Routing table entry (sizeof() == 16 bytes)
| 1337 | |
| 1338 | // Routing table entry (sizeof() == 16 bytes) |
| 1339 | struct ImGuiKeyRoutingData |
| 1340 | { |
| 1341 | ImGuiKeyRoutingIndex NextEntryIndex; |
| 1342 | ImU16 Mods; // Technically we'd only need 4-bits but for simplify we store ImGuiMod_ values which need 16-bits. ImGuiMod_Shortcut is already translated to Ctrl/Super. |
| 1343 | ImU8 RoutingNextScore; // Lower is better (0: perfect score) |
| 1344 | ImGuiID RoutingCurr; |
| 1345 | ImGuiID RoutingNext; |
| 1346 | |
| 1347 | ImGuiKeyRoutingData() { NextEntryIndex = -1; Mods = 0; RoutingNextScore = 255; RoutingCurr = RoutingNext = ImGuiKeyOwner_None; } |
| 1348 | }; |
| 1349 | |
| 1350 | // Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching. |
| 1351 | // Stored in main context (1 instance) |
no outgoing calls
no test coverage detected