cushy/examples
Jonathan Johnson 3f8885efbe
Callback handles are now managed
Installing a callback now returns a CallbackHandle. All map-style APIs
install this handle automatically on the created dynamic, which keeps
the callback installed until the dynamic is freed. All other APIs
return the handle for the caller to either call persist() or store
somewhere.

Now, the dynamic system can be used for application-long data with
almost no fear of leaking data due to how callbacks are being installed.
Technically cycles are still possible by moving clones into the
callbacks, so a WeakDynamic type might be worth exposing.
2023-12-01 13:31:42 -08:00
..
animation.rs Progress bars, repeating animations 2023-11-21 09:53:08 -08:00
basic-button.rs Removing centered from readme example 2023-11-14 20:41:04 -08:00
buttonception.rs Tested buttons in buttons 2023-11-29 15:42:06 -08:00
buttons.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
canvas.rs Subpixels + Feathering + figures refactor 2023-11-19 10:34:06 -08:00
checkbox.rs Dynamic now requires PartialEq 2023-11-23 11:53:59 -08:00
collapse.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
contacts.rs Implemented a basic grid 2023-11-30 18:19:53 -08:00
containers.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
counter.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
cursor-icon.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
custom-widgets.rs Refactored to MakeWidgetWithId 2023-11-30 09:14:19 -08:00
focus-order.rs Implemented a basic grid 2023-11-30 18:19:53 -08:00
focus.rs Making it easier to draw focus correctly 2023-11-29 15:08:12 -08:00
gameui.rs More fluent APIs 2023-11-22 05:54:35 -08:00
input.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
login.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
manual-tabs.rs Select buttons 2023-11-29 17:14:42 -08:00
nested-scroll.rs Stack with premeasured content now work 2023-11-15 07:47:23 -08:00
progress.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
radio.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
scroll.rs Helpers galore 2023-11-14 09:31:56 -08:00
select.rs Select buttons 2023-11-29 17:14:42 -08:00
slider.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
stack-align-test.rs Added slidable enum demo 2023-11-14 11:44:32 -08:00
style.rs Helpers galore 2023-11-14 09:31:56 -08:00
switcher.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00
theme.rs Callback handles are now managed 2023-12-01 13:31:42 -08:00
tic-tac-toe.rs Callback handles are now managed 2023-12-01 13:31:42 -08:00
tilemap.rs Finished mouse handling for tile map 2023-11-26 19:31:03 -08:00
todo.rs Callback handles are now managed 2023-12-01 13:31:42 -08:00
typography.rs Added font size + heading helpers 2023-11-28 10:14:55 -08:00
validation.rs Refactored root resize behavior 2023-11-25 12:00:59 -08:00