Commit graph

390 commits

Author SHA1 Message Date
Nils Martel
07b570036a Mention birth year in READMEs 2020-12-17 05:26:28 +01:00
Héctor Ramón Jiménez
b5c41a8815 Update game_of_life capture 2020-11-26 16:36:56 +01:00
Héctor Ramón
87c9df294c
Merge pull request #595 from valbendan/master
upgrade tokio to latest version(v0.3)
2020-11-25 04:24:44 +01:00
Héctor Ramón Jiménez
782dd2f522 Introduce tokio_old feature
This feature allows users to rely on the `0.2` version of `tokio` while
the async ecosystem upgrades to the latest version.
2020-11-25 03:06:24 +01:00
Héctor Ramón Jiménez
f41eacc3dc Use f32 for border_width and border_radius 2020-11-23 00:31:50 +01:00
Héctor Ramón Jiménez
f259d44186 Implement qr_code example 2020-11-20 10:29:40 +01:00
Héctor Ramón Jiménez
69c50c8511 Introduce event::Status to Subscription 2020-11-12 02:22:22 +01:00
Héctor Ramón Jiménez
3aca177132 Implement event capturing for Canvas 2020-11-12 01:24:59 +01:00
Héctor Ramón
73811c394a
Merge pull request #610 from hecrj/improvement/update-dependencies
Update dependencies
2020-11-11 18:06:27 +01:00
Héctor Ramón Jiménez
0400f6716b Use directories-next in todos example 2020-11-11 02:34:17 +01:00
Héctor Ramón Jiménez
86fa12229e Introduce is_command_pressed to ModifiersState 2020-11-10 21:18:21 +01:00
Héctor Ramón Jiménez
17a4647fce Update directories dependency in todos example 2020-11-10 19:13:40 +01:00
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
d6d5cf0294 Restore hotkeys in pane_grid example
- Implement `subscription::events_with`
- Remove `pane_grid::KeyPressEvent`
- Return closest sibling in `pane_grid::State::close`
2020-11-10 02:32:57 +01:00
Héctor Ramón Jiménez
8008ea5286 Introduce on_click handler in PaneGrid 2020-11-10 01:48:11 +01:00
Héctor Ramón Jiménez
5681c83d3c Remove focus concept from pane_grid 2020-11-10 01:38:27 +01:00
valbendan
eacb2e913f upgrade tokio to latest version(v0.3) 2020-11-05 11:36:23 +08: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