Commit graph

394 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
d54f17c6aa Simplify integration example with Program 2020-05-21 04:57:00 +02:00
Héctor Ramón Jiménez
e0e4ee73fe Implement iced_glutin 🎉 2020-05-21 00:44:35 +02:00
Héctor Ramón Jiménez
a1a5fcfd46 Refactor Viewport and Compositor 2020-05-20 20:28:35 +02:00
Héctor Ramón Jiménez
4aed0fa4b6 Rename window::Backend to Compositor 2020-05-19 20:01:55 +02:00
Héctor Ramón Jiménez
05af8d00d4 Draft new iced_graphics crate 🎉 2020-05-19 17:15:44 +02:00
Héctor Ramón Jiménez
d4743183d4 Draft first working version of iced_glow 🎉 2020-05-19 14:23:28 +02:00
Héctor Ramón Jiménez
93c6be5eef Update README of game_of_life example 2020-05-04 23:54:28 +02:00
Héctor Ramón Jiménez
80e2d1b08b Adapt color_palette to new canvas API 2020-05-04 23:46:15 +02:00
Héctor Ramón Jiménez
67b2ccb4d5 Merge branch 'master' into feature/canvas-interaction 2020-05-04 23:35:09 +02:00
Héctor Ramón Jiménez
e3555174d7 Use only iced dependency for color_palette
`Point` and `Size` are now properly re-exported.
2020-05-04 22:55:10 +02:00
Héctor Ramón Jiménez
3d3e51a742 Add screenshot to README of color_palette 2020-05-04 22:53:07 +02:00
Héctor Ramón Jiménez
1a8d253611 Add screenshot of color_palette example 2020-05-04 22:51:20 +02:00
Héctor Ramón Jiménez
24574b355d Mention color_palette in examples README 2020-05-04 22:50:25 +02:00
Héctor Ramón Jiménez
2f41ccee1c Update GIF of game_of_life example 2020-05-03 02:49:04 +02:00
Héctor Ramón Jiménez
917199197f Allow erasing cells in game_of_life 2020-05-03 02:43:20 +02:00
Héctor Ramón Jiménez
4417a34edb Fix "1 cells" overlay in game_of_life 2020-05-03 02:15:11 +02:00
Héctor Ramón Jiménez
5aaaea7c88 Render stats as an overlay in game_of_life
Also allow toggling the grid lines
2020-05-03 01:53:45 +02:00
Héctor Ramón Jiménez
c3c5161386 Draw grid in game_of_life 2020-05-03 00:57:15 +02:00
Héctor Ramón Jiménez
a43fb42428 Reorganize view code in game_of_life 2020-05-03 00:08:41 +02:00
Héctor Ramón Jiménez
cc8f5b6fc8 Simplify logic and limit ticks in game_of_life 2020-05-02 10:48:42 +02:00
Héctor Ramón Jiménez
0025b8c3f8 Display some statistics in game_of_life 2020-05-02 09:27:49 +02:00
Héctor Ramón Jiménez
916a1bfc70 Run ticks in a background thread in game_of_life 2020-05-02 07:01:27 +02:00
Héctor Ramón Jiménez
8fa9e4c94e Rename visible_in to within in game_of_life 2020-05-02 03:37:20 +02:00
Héctor Ramón Jiménez
4fd8e47737 Use rustc_hash for hashing in game_of_life
This seems to produce a 2x speedup.
2020-05-02 03:33:03 +02:00
Héctor Ramón Jiménez
03ca7eea6c Reuse triangle path with transforms in color_palette 2020-05-01 22:45:47 +02:00
Héctor Ramón Jiménez
573929d5ec Use Path::rectangle directly in color_palette 2020-05-01 22:32:40 +02:00
Héctor Ramón Jiménez
555371f77e Move application implementation in color_palette 2020-05-01 22:27:14 +02:00
Héctor Ramón Jiménez
4d724a88e6 Introduce Theme type in color_palette example 2020-05-01 22:24:34 +02:00
Héctor Ramón Jiménez
0a011f9031 Improve generate_theme in color_palette 2020-05-01 21:51:08 +02:00
Héctor Ramón Jiménez
11e4039b56 Remove update_component in color_palette
We can use `ColorSpace::new` instead
2020-05-01 21:43:11 +02:00