Commit graph

5343 commits

Author SHA1 Message Date
Héctor
e8f8216ea1
Merge pull request #2673 from iced-rs/feature/pin-widget
`pin` widget
2024-11-24 14:00:18 +01:00
Héctor Ramón Jiménez
a805177b25
Make pin widget Fill parent by default 2024-11-22 04:13:38 +01:00
Héctor Ramón Jiménez
5be1d545d0
Implement pin widget 2024-11-22 04:06:52 +01:00
Héctor Ramón Jiménez
6ccc828607
Use Task::run in download_progress example 2024-11-22 02:14:56 +01:00
Héctor
53b7f507f8
Merge pull request #2672 from ids1024/screenshot
Remove `surface` argument of `Compositor::screenshot`
2024-11-22 01:57:48 +01:00
Héctor Ramón Jiménez
6d50c62bc7
Honor clones of task::Handle with abort_on_drop 2024-11-22 01:51:00 +01:00
Ian Douglas Scott
3fc57b7d95 Remove surface argument of Compositor::screenshot
This argument was completely ignored by the wgpu renderer, and used only
for the `clip_mask` by the `tiny_skia` renderer. I believe creating a
new clip mask is correct.

This way it's possible to render offscreen without needing a surface.
2024-11-21 16:26:17 -08:00
Héctor
2a2e20b0a3
Merge pull request #2668 from edwloef/master
Fix docs of `Scrollable::with_direction` and `Scrollable::direction`
2024-11-13 18:20:20 +01:00
Héctor
a11fcf8f2d
Merge pull request #2662 from iced-rs/reactive-rendering
Reactive Rendering
2024-11-13 17:08:26 +01:00
edwloef
ed2e223fe0
Fix docs of Scrollable::with_direction and Scrollable::direction 2024-11-11 13:04:37 +01:00
Héctor Ramón Jiménez
28ec6df8f0
Fix cross-axis compression in layout::flex 2024-11-08 18:08:34 +01:00
Héctor Ramón Jiménez
9511bfb971
Fix event capturing order in pane_grid 2024-11-06 22:03:00 +01:00
Héctor Ramón Jiménez
e5f1e31a5c
Rename Overlay::on_event to update 2024-11-06 00:02:46 +01:00
Héctor Ramón Jiménez
03bffe3db6
Fix pick_list not requesting a redraw when open 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
fec75221f9
Fix text_editor capturing mouse release events 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
3482ffecdc
Implement reactive-rendering for text_editor 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
d5a886dbcb
Fix hover widget not redrawing when hovered 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
6fc16769c4
Unify shader::Program API with canvas::Program 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
14ec330730
Replace reactive-rendering feature with unconditional-rendering 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
c6af79a1d0
Fix deferred layout on resize after drawing 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
4e47450c33
Implement reactive-rendering for pane_grid 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
920596ed6f
Implement reactive-rendering for canvas 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
a84b328dcc
Implement reactive-rendering for combo_box 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
f02bfc3f68
Rename Widget::on_event to update 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
dcc184b01b
Replace event::Status in Widget::on_event with Shell::capture_event 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
752403d70c
Split Shell::request_redraw into two different methods 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
7fbc195b11
Implement reactive-rendering for scrollable 2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
908af3fed7
Implement reactive-rendering for menu 2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
fdf046daff
Implement reactive-rendering for pick_list 2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
7908b6eba9
Request a redraw when a window is resized
If we do not request it, macOS does not get any
`RedrawRequested` events. Shouldn't `winit`
[take care of this]? Probably a bug.

[take care of this]: https://docs.rs/winit/0.30.5/winit/event/enum.WindowEvent.html#variant.RedrawRequested
2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
46017c6483
Implement reactive-rendering for toggler 2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
0c77702187
Implement reactive-rendering for radio 2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
f6c322f2f9
Implement reactive-rendering for checkbox 2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
0691e617f3
Fix WindowManager::is_idle in iced_winit 2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
52490397d6
Implement reactive-rendering for text_input
... and fix the redraw queue logic in `iced_winit`.
2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
3ba7c71e3f
Implement reactive-rendering for slider 2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
97bcca0400
Remove TODO about reactive rendering in iced_winit 2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
5c33ce18ed
Draft reactive-rendering feature for button 2024-11-05 23:52:56 +01:00
Héctor
42a2cb6d4f
Merge pull request #2663 from iced-rs/update-wgpu-to-23.0
Update `wgpu` to `23.0`
2024-11-05 13:47:14 +01:00
Héctor Ramón Jiménez
ebc4e17ba8
Update wgpu to 23.0 2024-11-05 13:32:14 +01:00
Héctor
50340b4b43
Merge pull request #2651 from rhogenson/total-cmp
Use float total_cmp instead of partial_cmp to get a total order.
2024-10-28 17:38:54 +01:00
Rose Hogenson
f3733a811b Use float total_cmp instead of partial_cmp to get a total order.
Since Rust version 1.81, sort_by will panic if the provided comparison
function does not implement a total order.
See https://github.com/rust/lang/rust/issues/129561 for more details.
The simplest fix seems to be to use total_cmp instead of partial_cmp.
2024-10-26 09:28:20 -07:00
Héctor
d660fad33d
Merge pull request #2649 from kosayoda/window-focus-fix
Prevent unintended keyboard input during focus.
2024-10-25 14:41:40 +02:00
kosayoda
6ed88f7608 Prevent unintended keyboard input during focus. 2024-10-24 16:12:18 -04:00
Héctor
17b35df160
Merge pull request #2628 from tarkah/fix/pane-grid-continuity
Fix/pane grid continuity
2024-10-24 15:04:23 +02:00
Héctor Ramón Jiménez
d08bc6e45d
Add relabel helper to pane_grid::State 2024-10-24 14:17:38 +02:00
Héctor Ramón Jiménez
55504ffcd4
Rename state::Widget to pane_grid::Memory 2024-10-24 13:55:04 +02:00
Héctor Ramón Jiménez
089e629f41
Fix responsive diffing when Tree is emptied by ancestors 2024-10-24 13:48:42 +02:00
Héctor Ramón Jiménez
659669dd58
Remove duplicated maximized state in pane_grid 2024-10-24 13:48:34 +02:00
Cory Forsstrom
5ebd8ac83f
Keep Pane associated to state / layout after swap
State continuity is dependent on keeping a node associated
to it's original `Pane` id. When splitting -> swapping
nodes, we need to assign it back to the original `Pane`
to enforce continuity.
2024-10-24 13:05:42 +02:00