Commit graph

3590 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
9f73ee3206
Fix import consistency for bytemuck 2023-07-12 09:03:24 +02:00
Alec Deason
af386fd0a3
Upgrade resvg to 0.34 and tiny_skia to 0.10 2023-07-12 08:59:07 +02:00
Héctor Ramón
9f2be29a28
Merge pull request #1692 from tarkah/fix/tooltip-overlay
Use overlay for tooltip
2023-07-12 03:59:15 +02:00
Héctor Ramón Jiménez
896a90decb
Remove useless conversions in widget::tooltip 2023-07-12 03:48:26 +02:00
Cory Forsstrom
65be3f8b96
Use overlay for Tooltip widget 2023-07-12 03:31:22 +02:00
Héctor Ramón
63b2dc367e
Merge pull request #1949 from nicksenger/fix/component-overlay-redraw
Forward redraw requests in component overlay
2023-07-09 22:33:02 +02:00
Nick Senger
4c2aa071a0 fix: request redraw in component overlay 2023-07-09 12:46:43 -07:00
Héctor Ramón
fb512c3b70
Merge pull request #1865 from jhff/pane_grid_edge_with_dragged_pane
[Feature] Pane Grid: drag & drop panes to the edges
2023-07-06 08:40:05 +02:00
Héctor Ramón Jiménez
0964f12db7
Remove useless conversion in widget::pane_grid 2023-07-06 08:26:46 +02:00
Héctor Ramón Jiménez
c5a623f32b
Introduce drop helper to pane_grid::State 2023-07-06 07:57:24 +02:00
Héctor Ramón Jiménez
ecce8bbcee
Simplify Target enum in widget::pane_grid 2023-07-06 07:57:23 +02:00
Héctor Ramón Jiménez
f83ee1e9f9
Call in_edge only when picked_pane.is_some() 2023-07-06 07:56:22 +02:00
Joao Freitas
995c7c1ca9
Reuse code 2023-07-06 07:55:50 +02:00
Joao Freitas
e5c9dd54b3
Add ability to drag pane to the pane grid edges & optional style for dragged pane 2023-07-06 07:55:49 +02:00
Héctor Ramón
7f805bc5dd
Merge pull request #1927 from thunderstorm010/master
Add command to retrieve window size
2023-07-06 07:00:15 +02:00
Héctor Ramón Jiménez
f350a2f812
Add fetch_size helper to runtime::window 2023-07-06 06:44:09 +02:00
Héctor Ramón Jiménez
f43a272d7d
Add missing newline in core::window 2023-07-06 06:42:30 +02:00
Héctor Ramón Jiménez
cc32bd4de0
Use Size in both Resize and FetchSize window actions 2023-07-06 06:41:28 +02:00
Héctor Ramón
a057f8811b
Merge pull request #1938 from iced-rs/text-cache-modes
Text cache modes
2023-06-30 19:10:41 +02:00
Héctor Ramón Jiménez
d666e739cd
Trim text measurements only before layout 2023-06-29 18:23:11 +02:00
Héctor Ramón Jiménez
cdce03cf7f
Revert "Remove layout method from core::Renderer trait"
This reverts commit 2128472c2a.
2023-06-29 18:17:18 +02:00
Héctor Ramón Jiménez
98febd9a42
Introduce Mode for text::Cache and trim only when switching modes 2023-06-29 17:54:54 +02:00
Héctor Ramón
949eca3eb8
Merge pull request #1913 from Drakulix/feature/runtime-state-operate
runtime: Handle widget operations in `program::State` helper
2023-06-29 10:23:52 +02:00
Héctor Ramón Jiménez
af4d65c428
Keep imports consistent in program::state 2023-06-29 08:15:30 +02:00
Héctor Ramón Jiménez
ae2709f2c4
Take Box instead of reference in State::operate 2023-06-29 08:14:44 +02:00
Austin M. Reppert
0cc85c7820
Add touch support for toggler. (#1935)
* Add touch support for toggler.

* Fix formatting.

* Fix consistency of imports in `iced_widget::toggler`

---------

Co-authored-by: Austin M. Reppert <austinmreppert@protonmail.com>
Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2023-06-29 06:14:21 +00:00
Héctor Ramón
c6b583113d
Merge pull request #1932 from iced-rs/generic-graphics-primitive
Backend-specific primitives
2023-06-29 08:09:45 +02:00
Héctor Ramón Jiménez
6921564c9f
Write missing docs in iced_graphics and iced_wgpu 2023-06-29 07:55:52 +02:00
Héctor Ramón Jiménez
fa5650cfd1
Decouple Mesh primitives from main Primitive type 2023-06-29 07:48:03 +02:00
Héctor Ramón Jiménez
2128472c2a
Remove layout method from core::Renderer trait 2023-06-29 07:18:24 +02:00
Héctor Ramón Jiménez
0ae1baa37b
Introduce custom backend-specific primitives 2023-06-29 07:18:20 +02:00
Victoria Brekenfeld
4b831a917d runtime: Add operate method to program::State 2023-06-28 18:51:14 +02:00
Héctor Ramón
8d65e40a11
Merge pull request #1934 from iced-rs/reuse-text-cache-entries
Reuse entries in `text::Cache`
2023-06-28 01:40:53 +02:00
Héctor Ramón Jiménez
00859c25f5
Retain text measurements as long as original entries 2023-06-28 01:27:09 +02:00
Héctor Ramón Jiménez
975eebfc62
Retain measurements for text entries even if not directly used 2023-06-28 00:51:40 +02:00
Héctor Ramón Jiménez
c8d79a5cd9
Fix needless borrow in iced_wgpu and iced_tiny_skia 2023-06-28 00:45:41 +02:00
Héctor Ramón Jiménez
73dca5e323
Reuse entries in text::Cache in iced_tiny_skia 2023-06-28 00:44:23 +02:00
Héctor Ramón Jiménez
78ad365db2
Reuse entries in text::Cache in iced_wgpu 2023-06-28 00:35:37 +02:00
Héctor Ramón Jiménez
af62ec1c87
Fix loading_spinners example 2023-06-28 00:11:41 +02:00
Héctor Ramón
9d83718fbe
Merge pull request #1878 from AustinMReppert/master
Minor Scrollable Improvements
2023-06-27 23:16:54 +02:00
Héctor Ramón
2d2ed4048c
Merge pull request #1902 from nicksenger/loading-spinners
Example loading spinners
2023-06-27 23:12:09 +02:00
Héctor Ramón Jiménez
1c26440f0b
Use Option::filter instead of and_then in scrollable 2023-06-27 23:04:50 +02:00
Héctor Ramón Jiménez
412e15b170
Require a Direction when computing State::offset in scrollable 2023-06-27 23:04:49 +02:00
Héctor Ramón Jiménez
493571695a
Rename ScrollbarProperties to Direction in scrollable 2023-06-27 23:04:49 +02:00
Austin M. Reppert
fa04f40524
Make vertical scroll properties optional
Co-Authored-By: Austin M. Reppert <austinmreppert@gmail.com>
2023-06-27 23:03:29 +02:00
Héctor Ramón
f63a9d1a79
Merge pull request #1843 from wash2/fix-tiny-skia-quad
fix: quad rendering including border only inside of the bounds
2023-06-27 22:19:49 +02:00
Héctor Ramón
c7332c1522
Merge pull request #1885 from bungoboingo/gradient-packing-optimization
Small gradient optimization
2023-06-27 22:10:17 +02:00
Héctor Ramón Jiménez
2f886b0e4e
Fix import consistency in iced_tiny_skia 2023-06-27 22:06:32 +02:00
Héctor Ramón Jiménez
bf7d636ebf
Draw border path for quad only if it has a border in iced_tiny_skia 2023-06-27 22:05:49 +02:00
Héctor Ramón
f6966268bb
Merge pull request #1845 from bungoboingo/feat/offscreen-rendering
Feat: Offscreen Rendering & Screenshots
2023-06-27 20:37:19 +02:00