egui_virtual_list

Crates.ioegui_virtual_list
lib.rsegui_virtual_list
version0.5.0
sourcesrc
created_at2024-01-21 15:48:26.421192
updated_at2024-10-03 09:54:16.111725
descriptionA virtual list widget for egui, with support for variable height items.
homepagehttps://lucasmerlin.github.io/hello_egui/#/example/gallery
repositoryhttps://github.com/lucasmerlin/hello_egui/tree/main/crates/egui_virtual_list
max_upload_size
id1107700
size116,131
(lucasmerlin)

documentation

README

egui_virtual_list

egui_ver Latest version Documentation unsafe forbidden License

This crate adds a virtual list widget to egui. Egui has a basic build in virtual list in the ScrollArea widget. This crate has some extra features though:

  • Supports items with varying heights
    • Heights are calculated lazily and cached, as you scroll further down the list
  • Supports custom layouts, so you could place multiple items in a single row
  • Allows for adding items at the top without the scroll position changing

There are some limitations though:

  • If you want to support a crazy amounts of items (1000000+ items), where you can instantly jump anywhere in the list, I recommend using egui's built in ScrollArea instead.
  • Horizontal scrolling is not supported yet, but it should be easy to add if needed.

If you want to build a infinite scroll list, I recommend using the egui_infinite_scroll crate instead, which is using this crate internally.

Commit count: 390

cargo fmt