Héctor Ramón Jiménez
860de97b42
Update env_logger in tour and integration examples
2020-11-10 19:12:28 +01:00
Héctor Ramón Jiménez
d328b07b39
Introduce viewport to Widget::draw
...
This should eventually allow us to only generate primitives that are
visible.
2020-10-28 06:21:07 +01:00
Héctor Ramón Jiménez
2ca05520ba
Update screenshot of scrollable example
2020-10-24 10:32:26 +02:00
Héctor Ramón Jiménez
ed458d33d9
Reduce contrast of dark theme in scrollable example
2020-10-24 10:29:19 +02:00
Héctor Ramón Jiménez
7f66345d5a
Improve minor details in scrollable example
...
- Rename `Config` to `Variant`
- Include `State` in `Variant` to avoid `zip`
- Break long string literal
- Split `style` module into its own file
2020-10-24 10:29:12 +02:00
Clark Moody
e43a46952a
Add scrollable example program
2020-10-22 16:24:54 -05:00
Héctor Ramón Jiménez
d7a5e54455
Require Clone for Message early when needed
...
Prior to this change, the widgets that needed a `Clone` bound on `Message` to
implement the `Widget` trait could be created with a non-cloneable `Message`.
As a consequence, the compiler complained only when actually trying to use the
`Widget` trait. Normally, this happens when trying to `push` the widget in a
container or turn it into an `Element`.
Furthermore, the compiler error in this case does not mention `Message` nor the
`Clone` bound, but instead complains about a missing `From` implementation.
Thus, it can easily cause confusion!
This change introduces `Clone` bounds in the main implementation of the
widgets that need it to properly implement the `Widget` trait. As a
result, the compiler complains early when trying to create one of these widgets
with a non-cloneable `Message` and explicitly mentions that the `Message` needs
to implement `Clone`.
2020-10-17 08:10:30 +02:00
Héctor Ramón Jiménez
4f2962d73f
Move version from Grid to GameOfLife struct
2020-09-12 20:35:51 +02:00
Héctor Ramón Jiménez
c1f79b40cf
Make Application and Sandbox return a Result
2020-09-08 00:44:59 +02:00
Héctor Ramón Jiménez
b689778ed9
Remove redundant depth bias fields in iced_wgpu
2020-08-27 19:15:05 +02:00
Héctor Ramón Jiménez
bae0a3e46e
Update wgpu in integration example
2020-08-27 14:55:41 +02:00
Kaiden42
f025794985
Update styling example
...
Also run `cargo fmt`
2020-08-25 10:42:53 +02:00
Billy Messenger
32561bd85c
added FillMode enum style for the Rule widget
2020-08-22 21:23:44 +02:00
Billy Messenger
8d68c8584e
widget Rule added
2020-08-22 21:23:27 +02:00
Héctor Ramón Jiménez
00d66da0ce
Add Keyboard variant to canvas::Event
2020-08-10 23:57:29 +02:00
Héctor Ramón Jiménez
aaf5986123
Improve Menu API to facilitate external control
2020-07-23 03:58:59 +02:00
Héctor Ramón Jiménez
73d1353976
Update README of examples
2020-07-16 04:30:06 +02:00
Héctor Ramón Jiménez
26fbc9af00
Simplify pick_list example
2020-07-10 08:11:31 +02:00
Héctor Ramón Jiménez
94383d82a5
Style PickList in game_of_life example
2020-07-10 07:41:31 +02:00
Héctor Ramón Jiménez
b64e0ea5e3
Add Preset selector to game_of_life example
2020-07-10 04:14:21 +02:00
Héctor Ramón Jiménez
73b8ae8e5e
Rename ComboBox to PickList
2020-07-10 02:52:00 +02:00
Héctor Ramón Jiménez
dc0e423142
Remove unnecessary lifetime in Widget trait
2020-07-10 02:01:30 +02:00
Héctor Ramón Jiménez
ce8cb228ef
Merge branch 'master' into feature/overlay
2020-07-10 01:25:49 +02:00
Héctor Ramón Jiménez
3c5921f30c
Update pane_grid GIFs
2020-07-09 07:05:57 +02:00
Héctor Ramón Jiménez
6820eea9ce
Simplify style of pane_grid example
2020-07-09 06:29:54 +02:00
Héctor Ramón Jiménez
67f4c9aea3
Add a TitleBar to pane_grid example
2020-07-09 06:27:38 +02:00
Héctor Ramón Jiménez
f3dfaa2c43
Merge branch 'master' into feature/pane-grid-titlebar
2020-07-08 11:44:40 +02:00
Héctor Ramón Jiménez
f655d9b967
Position Menu layer based on available space
2020-07-08 11:06:39 +02:00
Héctor Ramón Jiménez
ada8d7c77f
Implement Widget::overlay for Scrollable
2020-07-08 10:59:57 +02:00
Héctor Ramón Jiménez
afd9274de2
Draft ComboBox and Menu layer
2020-07-08 10:59:56 +02:00
Héctor Ramón Jiménez
b1afadf1a2
Draft combo_box example to test overlay logic
2020-07-08 10:41:18 +02:00
Héctor Ramón Jiménez
c901f40fd6
Introduce Widget::overlay 🎉
2020-07-08 10:34:14 +02:00
Héctor Ramón Jiménez
f30a666dc8
Decouple cursor_position from Cache
...
Instead, we ask explicitly for it in the different `update` and `draw` methods.
This way, the runtime can derive the logical position of the cursor from
the source of truth.
2020-06-23 06:44:34 +02:00
Héctor Ramón Jiménez
d7d2e0a8aa
Increase precision in color_palette example
2020-06-13 14:50:21 +02:00
Héctor Ramón Jiménez
3cc32abc7c
Reduce slider step in progress_bar example
2020-06-13 14:39:48 +02:00
Héctor Ramón Jiménez
4aed3ede92
Use generic Slider in tour example
2020-06-13 14:34:39 +02:00
Sebastian Zivota
c3643eaf6d
Add step member to slider widgets
...
Both the native and the web slider now have a member `step` to control
the least possible change of the slider's value. It defaults to 1.0
for all sliders and can be adjusted with the step method.
2020-06-11 00:18:24 +02:00
Héctor Ramón Jiménez
49dbf2c146
Request a redraw only on relevant events
2020-06-09 15:45:57 +02:00
Héctor Ramón Jiménez
8493ccec7f
Merge branch 'intuitive-pane-grid-resize' into feature/pane-grid-titlebar
2020-06-08 18:33:36 +02:00
Héctor Ramón Jiménez
be0cc2c780
Add leeway support to PaneGrid::on_resize
2020-06-08 18:25:23 +02:00
Duncan Freeman
4960a8827e
Add on_release message to Slider ( #378 )
...
* Add on_finish callback to Slider
* Fix formatting
* Rename Slider's on_finish to on_release, make the message simply an event without data
* Satisfy Clone impl requirement on Message in integration test
* Only call on_release after dragging a slider
2020-06-08 11:07:45 +02:00
Richard
40750d9b36
Removed empty bind group from integration example ( #390 )
2020-06-08 11:03:34 +02:00
Héctor Ramón Jiménez
fd3801ed38
Clear frames explicitly in integration example
2020-06-05 15:05:30 +02:00
Héctor Ramón Jiménez
a11bcf5af0
Draft first-class TitleBar in pane_grid
2020-06-04 07:13:38 +02:00
hatoo
969de1d31c
Add a comment of how to clear the display to integration example
2020-06-03 22:01:28 +09:00
Cedric Hutchings
d5b9dee2fd
Attempt to appease rustfmt
2020-06-02 16:48:55 -04:00
Cedric Hutchings
99eda093d6
Prevent gratuitous resizing in integration example
...
If I didn't miss anything, that `resized` variable is never set back to `false`, meaning that swapchain recreation is retriggered every frame after the first resize.
2020-06-02 16:40:46 -04:00
Héctor Ramón Jiménez
e11b5c614f
Revert "Target physical pixels for quads in iced_glow"
...
This reverts commit 45511a442f .
2020-05-28 22:57:30 +02:00
Héctor Ramón Jiménez
6de0a2c371
Use Sandbox in tour example
2020-05-28 22:50:40 +02:00
Héctor Ramón Jiménez
45511a442f
Target physical pixels for quads in iced_glow
2020-05-27 23:17:21 +02:00