Commit graph

3604 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
a9987cb32e
Introduce absolute_offset_reversed to scrollable::Viewport 2023-07-13 02:56:28 +02:00
Cory Forsstrom
11287c882e
Expose methods to change viewport alignment 2023-07-12 16:58:55 -07:00
Héctor Ramón
21bd51426d
Merge pull request #1912 from tarkah/feat/scrollable-alignment
Add scrollable alignment option
2023-07-12 10:24:04 +02:00
Héctor Ramón Jiménez
ce23e08d0d
Remove unnecessary cursor unavailability logic in scrollable 2023-07-12 10:13:15 +02:00
Héctor Ramón Jiménez
d07bac36ab
Rename absolute_from_start to translation in scrollable 2023-07-12 10:05:46 +02:00
Héctor Ramón Jiménez
ca2afb0495
Disambiguate offset from translation in scrollable 2023-07-12 10:04:26 +02:00
Héctor Ramón Jiménez
2b2f9c07d8
Increase type-safety of alignment in scrollable 2023-07-12 09:49:14 +02:00
Héctor Ramón Jiménez
44460f7b8b
Remove public fields from Viewport
Let's tackle use cases directly instead!
2023-07-12 09:26:13 +02:00
Héctor Ramón
e96fe1443d
Merge pull request #1907 from alec-deason/master
Update `resvg` to `0.35` and `tiny-skia` to `0.10`
2023-07-12 09:24:35 +02:00
Héctor Ramón Jiménez
5dd923402e
Update resvg dependency to 0.35 2023-07-12 09:10:58 +02:00
Héctor Ramón Jiménez
6502cf1111
Improve code style in vector modules 2023-07-12 09:07:20 +02:00
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
Cory Forsstrom
d79cedd8da Add alignment to Viewport 2023-07-04 10:43:12 -07:00
Cory Forsstrom
905c307f0b Make viewport bounds public 2023-07-04 10:43:12 -07:00
Cory Forsstrom
4f066b516b Add scrollable alignment option 2023-07-04 10:43:12 -07: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