Struct imgui::ListClipper
source · pub struct ListClipper { /* private fields */ }
Expand description
Used to render only the visible items when displaying a long list of items in a scrollable area.
For example, you can have a huge list of checkboxes.
Without the clipper you have to call ui.checkbox(...)
for every one, even if 99% of of them are not visible in
the current frame. Using the ListClipper
, you can only
call ui.checkbox(...)
for the currently visible items.
Note the efficiency of list clipper relies on the height of each item being cheaply calculated. The current rust bindings only works with a fixed height for all items.
Implementations§
source§impl ListClipper
impl ListClipper
Auto Trait Implementations§
impl Freeze for ListClipper
impl RefUnwindSafe for ListClipper
impl Send for ListClipper
impl Sync for ListClipper
impl Unpin for ListClipper
impl UnwindSafe for ListClipper
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more