cushy/src
Jonathan Johnson 4bc3f5a884
Refactored VirtualList
These set of changes attempt to resolve a few complexities from the
original implementation: sizing and how to dynamically update the
content in the list.

On the sizing front, manually specifying the width and height of the
rows felt like it was more complex than measuring the first widget and
using that for all other widgets. This allows a user who wants to force
an explicit size to use the Resize widget, while also supporting
SizeToFit flows. Additionally, this paves the way for us to add
horizontal scrolling to this list, but this commit was already complex
enough I held off on that change for now.

One workflow I wanted to see supported was going from 0 rows to 50 rows.
When the item count comes from a trait, it was pretty complicated to
determine how to tell the list to ask for a new row count. By having the
user provide a Value<usize>, they can provide a `Dynamic<usize>` that
can be updated with a new row count whenever the application determines
there is new data. We still need to figure out a way to force a refresh
of the data even if the row count doesn't change.

Ultimately changing this allowed removing the trait and seemingly
simplified the basic usage in addition to adding more flexibility.
2024-11-07 14:27:08 -08:00
..
dialog File picker 2024-10-03 13:39:46 -07:00
styles Fixed initial window settings 2024-09-13 10:12:01 -07:00
widgets Refactored VirtualList 2024-11-07 14:27:08 -08:00
animation.rs Animate for callbacks 2024-09-22 10:41:30 -07:00
app.rs Unrecoverable errors as native dialogs 2024-10-07 08:06:07 -07:00
context.rs Consistently apply overridden theme 2024-10-24 07:34:27 -07:00
debug.rs File picker 2024-10-03 13:39:46 -07:00
dialog.rs Document mouse event handling more thoroughly 2024-10-25 10:00:57 -07:00
example.rs Fixing book example generation 2024-09-05 20:47:07 -07:00
fonts.rs Dynamic font loading 2024-03-06 16:53:36 -08:00
graphics.rs Fixed clipping of widgets with negative origins 2024-10-17 08:54:12 -07:00
lib.rs Refactored VirtualList 2024-11-07 14:27:08 -08:00
names.rs Renaming crate to Cushy 2023-12-27 19:02:59 -08:00
styles.rs Refactored Scroll to be UPx 2024-10-17 09:46:32 -07:00
tick.rs map_each deadlock prevention 2024-04-05 16:14:26 -07:00
tree.rs Consistently apply overridden theme 2024-10-24 07:34:27 -07:00
utils.rs Logging tweaks + documentation 2024-09-22 07:38:20 -07:00
value.rs Disable resizable automatically with fixed roots 2024-10-19 09:10:12 -07:00
widget.rs Refactored VirtualList 2024-11-07 14:27:08 -08:00
widgets.rs Refactored VirtualList 2024-11-07 14:27:08 -08:00
window.rs Merge branch 'main' of github.com:khonsulabs/gooey 2024-10-22 06:12:38 -07:00