cushy/examples
Jonathan Johnson 2201f2c83b
Ranged sliders, advance_focus, allow_blur
Closes #60

Stepping in sliders is a compromise due to the flexibility of the
current slider implementation. I don't want to force types to implement
Add, and I don't like forcing types to require a Step (ie, what's the
appropriate value for f32 to specify as its next value?). Using a
percentage combined with lerp keeps the implementation fairly
straightfoward, although I remember experiencing this type of
configuration in another UI framework a long time ago and thinking it
was a little annoying to work with.

Ultimately, setting actual step boundaries can be done by customizing
the type that the slider is operating over. I feel like that's a much
more powerful design than I've experienced in previous frameworks, so
I'm hoping this percent step behavior is a reasonable compromise.
2023-11-20 19:44:03 -08:00
..
animation.rs Added slidable enum demo 2023-11-14 11:44:32 -08:00
basic-button.rs Removing centered from readme example 2023-11-14 20:41:04 -08:00
buttons.rs Add transparent button to buttons example 2023-11-15 08:01:09 -08:00
canvas.rs Subpixels + Feathering + figures refactor 2023-11-19 10:34:06 -08:00
checkbox.rs Checkbox, ButtonKind, linked/linked_string + more 2023-11-14 20:39:29 -08:00
containers.rs Added slidable enum demo 2023-11-14 11:44:32 -08:00
counter.rs Added slidable enum demo 2023-11-14 11:44:32 -08:00
custom-widgets.rs Custom widget, layout size rounding 2023-11-20 10:11:10 -08:00
focus-order.rs Rewrote text input 2023-11-16 15:34:26 -08:00
focus.rs Ranged sliders, advance_focus, allow_blur 2023-11-20 19:44:03 -08:00
gameui.rs Updated winit 2023-11-20 06:32:58 -08:00
input.rs Subpixels + Feathering + figures refactor 2023-11-19 10:34:06 -08:00
login.rs Component type safety, some font support 2023-11-19 21:52:45 -08:00
nested-scroll.rs Stack with premeasured content now work 2023-11-15 07:47:23 -08:00
scroll.rs Helpers galore 2023-11-14 09:31:56 -08:00
slider.rs Ranged sliders, advance_focus, allow_blur 2023-11-20 19:44:03 -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 switcher to use Dynamic<WidgetInstance> 2023-11-14 13:24:23 -08:00
theme.rs Rewrote text input 2023-11-16 15:34:26 -08:00
tic-tac-toe.rs Hover updates after widget removal 2023-11-15 12:41:41 -08:00
tilemap.rs Updated winit 2023-11-20 06:32:58 -08:00
todo.rs Drawing refactor from Kludgine 2023-11-17 08:07:37 -08:00