Temporary clipper data, buffers shared/reused between instances
| 1438 | |
| 1439 | // Temporary clipper data, buffers shared/reused between instances |
| 1440 | struct ImGuiListClipperData |
| 1441 | { |
| 1442 | ImGuiListClipper* ListClipper; |
| 1443 | float LossynessOffset; |
| 1444 | int StepNo; |
| 1445 | int ItemsFrozen; |
| 1446 | ImVector<ImGuiListClipperRange> Ranges; |
| 1447 | |
| 1448 | ImGuiListClipperData() { memset(this, 0, sizeof(*this)); } |
| 1449 | void Reset(ImGuiListClipper* clipper) { ListClipper = clipper; StepNo = ItemsFrozen = 0; Ranges.resize(0); } |
| 1450 | }; |
| 1451 | |
| 1452 | //----------------------------------------------------------------------------- |
| 1453 | // [SECTION] Navigation support |