MCPcopy Create free account
hub / github.com/OpenSpace/OpenSpace / CalcListClipping

Method CalcListClipping

modules/imgui/ext/imgui/imgui.cpp:2168–2206  ·  view source on GitHub ↗

Helper to calculate coarse clipping of large list of evenly sized items. NB: Prefer using the ImGuiListClipper higher-level helper if you can! Read comments and instructions there on how those use this sort of pattern. NB: 'items_count' is only used to clamp the result, if you don't know your count you can use INT_MAX

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

ImClampFunction · 0.85
ImRectFunction · 0.70

Tested by

no test coverage detected