Commit graph

4769 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
a57313b23e
Simplify image rotation API and its internals 2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
Héctor Ramón Jiménez
aae8e4f5cf
Fix clippy lints for new 1.78 stable toolchain 2024-05-02 17:23:32 +02:00
Héctor Ramón Jiménez
ffa6614026
Fix panic in wgpu::color::convert 2024-05-02 08:44:44 +02:00
Héctor Ramón
72b78a9a8d
Merge pull request #2412 from JL710/patch-1
add missing derive(Debug) in lib.rs docs
2024-05-02 06:40:52 +02:00
Héctor Ramón Jiménez
e2aee80aa1
Introduce layered_text benchmarks 2024-05-01 15:39:44 +02:00
Héctor Ramón
a11784f9ed
Merge pull request #2356 from Bajix/feature/bytes
Utilize bytes::Bytes for images
2024-05-01 06:57:38 +02:00
Héctor Ramón Jiménez
01b014c19f
Fix documentation link in image::Handle 2024-05-01 01:53:25 +02:00
Héctor Ramón Jiménez
58ea914ad2
Make image::Id actually opaque 2024-05-01 01:52:49 +02:00
Héctor Ramón Jiménez
b52c7bb610
Use an opaque Id type for image::Handle
Hashing pointers is a terrible idea.
2024-05-01 01:39:43 +02:00
Héctor Ramón Jiménez
f5bc336d69
Fix clippy lint in runtime:🪟:screenshot 2024-05-01 01:09:31 +02:00
Héctor Ramón Jiménez
45254ab88c
Use Bytes as the Container of ImageBuffer
Since we don't need to mutate images once loaded,
we avoid unnecessary extra allocations.
2024-05-01 00:55:49 +02:00
Thomas Sieverding
7c084d9695
Utilize bytes::Bytes iced_runtime:🪟:Screenshot 2024-05-01 00:28:55 +02:00
Bajix
8d27af24a7
Utilize bytes::Bytes for images 2024-05-01 00:28:55 +02:00
Héctor Ramón
89892f1760
Merge pull request #2415 from iced-rs/feature/canvas-cache-groups
`canvas::Cache` Grouping
2024-05-01 00:28:06 +02:00
Héctor Ramón Jiménez
62433a65e9
Enable logging in clock example 2024-04-30 23:51:41 +02:00
Héctor Ramón Jiménez
7e2d0dc931
Keep text atlases alive during temporary empty uploads 2024-04-30 23:51:00 +02:00
Héctor Ramón Jiménez
b276a603a1
Fix cache trimming loop in iced_wgpu::text 2024-04-30 23:15:04 +02:00
Héctor Ramón Jiménez
c51b85e7ab
Invalidate text uploads after atlas trimming 2024-04-30 21:59:46 +02:00
JL710
f6c698b2dd
add missing derive(Debug) in lib.rs docs 2024-04-30 10:28:06 +02:00
Héctor Ramón Jiménez
cfe4ddb866
Fix clippy lint in the_matrix example 2024-04-30 08:10:22 +02:00
Héctor Ramón Jiménez
3c7b43d031
Use shared Cache group in the_matrix example 2024-04-30 08:06:51 +02:00
Héctor Ramón Jiménez
b5b78d505e
Introduce canvas::Cache grouping
Caches with the same `Group` will share their text
atlas!
2024-04-30 07:57:54 +02:00
Héctor Ramón Jiménez
24501fd73b
Fix text and triangle uploads being dropped on canvas cache clears 2024-04-30 05:13:24 +02:00
Héctor Ramón
e617d7e929
Merge pull request #2409 from iced-rs/rc-cache-eviction
Retain caches in `iced_wgpu` as long as `Rc` values are alive
2024-04-28 10:13:07 +02:00
Héctor Ramón Jiménez
aeede66963
Create the_matrix example 2024-04-27 15:11:03 +02:00
Héctor Ramón Jiménez
2dcd4f916e
Retain caches in iced_wgpu as long as Rc values are alive
This allows reusing a `canvas::Cache` at no cost even if it
is not presented every frame.
2024-04-27 14:16:12 +02:00
Héctor Ramón
d5bb6deb2f
Merge pull request #2408 from iced-rs/feature/hover-widget
`hover` widget
2024-04-27 11:53:11 +02:00
Héctor Ramón Jiménez
05c9077581
Propagate mouse movement and button releases unconditionally in hover 2024-04-27 11:28:43 +02:00
Héctor Ramón Jiménez
9c0f2dc9a5
Fix top layer clipping in hover widget 2024-04-27 11:21:18 +02:00
Héctor Ramón Jiménez
c58155a971
Set proper size boundaries for limits in Stack::layout 2024-04-27 06:20:41 +02:00
Héctor Ramón Jiménez
95ac45e33d
Fix ambiguous link in documentation of hover helper 2024-04-27 06:19:25 +02:00
Héctor Ramón Jiménez
40dff6b23d
Fix overlay behavior in hover widget 2024-04-27 06:16:57 +02:00
Héctor Ramón Jiménez
bb9244107c
Respect width and height properties when Stack is empty 2024-04-27 06:08:30 +02:00
Héctor Ramón Jiménez
a16a75a71d
Use hover widget in bezier_tool example 2024-04-27 06:06:28 +02:00
Héctor Ramón Jiménez
23ef6547ad
Introduce hover widget 2024-04-27 06:06:13 +02:00
Héctor Ramón
ce12231e22
Merge pull request #2407 from iced-rs/fix/text-editor-quirks
Fix some `text_editor` quirks
2024-04-26 15:38:46 +02:00
Héctor Ramón Jiménez
73088a6fc1
Fix out of bounds caret in TextEditor in some circumstances 2024-04-26 15:17:35 +02:00
Héctor Ramón Jiménez
3762c0590c
Fix panic when scrolling a TextEditor inside a scrollable 2024-04-26 15:17:10 +02:00
Héctor Ramón
40c4aa8ff2
Merge pull request #2406 from iced-rs/fix/scrollbar-priority
Capture scrollbar events in a `scrollable` before content events
2024-04-26 01:54:48 +02:00
Héctor Ramón Jiménez
6d4155a548
Fix Shift scrolling for scrollable on macOS
Apparently, macOS inverts the scrolling axes automatically now.
Was this a thing before, or did an update just break user space?
2024-04-26 01:44:03 +02:00
Héctor Ramón Jiménez
eb49567791
Capture scrollbar events in a scrollable before content events 2024-04-26 01:19:49 +02:00
Héctor Ramón
2d01d55cbc
Merge pull request #2405 from iced-rs/feature/stack-widget
`Stack` widget
2024-04-25 23:19:39 +02:00
Héctor Ramón Jiménez
4fc342c979
Simplify modal example 🎉 2024-04-25 06:05:40 +02:00
Héctor Ramón Jiménez
4cd45643d7
Introduce opaque widget helper 2024-04-25 06:05:37 +02:00
Héctor Ramón Jiménez
9492da11d9
Use Limits::resolve in Stack widget 2024-04-25 02:27:01 +02:00
Héctor Ramón Jiménez
99434b3ecf
Fix documentation of stack module 2024-04-25 01:47:07 +02:00
Héctor Ramón Jiménez
8b1c514c38
Showcase new Stack widget in bezier_tool example 2024-04-25 01:40:06 +02:00
Héctor Ramón Jiménez
0c74d26456
Implement Stack widget
It can be used to stack elements on top of each other!
2024-04-25 01:39:34 +02:00
Héctor Ramón
5ef593ce53
Merge pull request #2403 from iced-rs/improve-image-cache-eviction
Make image `Cache` eviction strategy less aggressive in `iced_wgpu`
2024-04-24 22:19:24 +02:00