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
Héctor Ramón Jiménez
493c36ac71
Make image Cache eviction strategy less aggressive in iced_wgpu
...
Instead of trimming unconditionally at the end of
a frame, we now trim the cache only when there is a
cache miss.
This way, images that are not visible but still a
part of the layout will stay cached. Eviction will
only happen when the images are not a part of the
UI for two consectuive frames.
2024-04-24 21:29:30 +02:00
Daniel
fdcec03197
Don't consume unused scroll events ( #2397 )
...
* Initial Commit
* Update scrollable.rs
* Use `let _ = ` instead of `_ =` for consistency
---------
Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-04-23 00:45:44 +00:00
Héctor Ramón Jiménez
67e181ce7b
Fix clip bounds with nested scrollable widgets
2024-04-23 02:29:48 +02:00
Héctor Ramón
15e15700ab
Merge pull request #2393 from saihaze/master
...
Fix typo in icon.rs
2024-04-21 01:37:02 +02:00
saihaze
f3a2255f83
Fix typo
2024-04-19 14:53:38 +08:00
Héctor Ramón Jiménez
a05b8044a9
Fix SelectNextSome poll after termination panic in iced_winit::Proxy
2024-04-17 15:54:12 +02:00
Héctor Ramón
ba705d63dd
Merge pull request #2386 from mtkennerly/feature/check-text-editor-focus
...
Allow checking whether a `TextEditor` is focused
2024-04-17 13:11:20 +02:00
Héctor Ramón
d8ce7bc8d4
Merge pull request #2389 from iced-rs/fix/async-memory-usage
...
Implement backpressure mechanism for `iced_winit::Proxy`
2024-04-17 12:43:25 +02:00
Héctor Ramón Jiménez
b6b51375cf
Implement backpressure mechanism in iced_winit::Proxy
2024-04-16 21:50:28 +02:00
Héctor Ramón Jiménez
e8ec6b94b6
Use Skip as the MissedTickBehavior for tokio futures backend
2024-04-16 20:22:57 +02:00
mtkennerly
f962c6ce06
Allow checking whether a TextEditor is focused
2024-04-15 08:41:29 -04:00
Héctor Ramón
105b8bd5ad
Merge pull request #2382 from iced-rs/wgpu/better-architecture
...
Improved architecture for `iced_wgpu` and `iced_tiny_skia`
2024-04-14 13:43:10 +02:00
Héctor Ramón Jiménez
dbbbadfc95
Restore PREMULTIPLIED_ALPHA_BLENDING in triangle::msaa pipeline
2024-04-12 18:46:48 +02:00
Héctor Ramón Jiménez
d0233da8a2
Fix applying local transformation to layer_bounds in iced_wgpu::text
2024-04-12 18:37:38 +02:00
Héctor Ramón Jiménez
43aafb7b79
Clip quad damage with layer bounds in iced_tiny_skia
2024-04-10 20:31:44 +02:00
Héctor Ramón Jiménez
1e8554bf02
Sort damage by distance from origin in iced_graphics::damage
2024-04-10 20:23:07 +02:00
Héctor Ramón Jiménez
fdd9896dc5
Track image damage in iced_tiny_skia
2024-04-10 19:55:27 +02:00
Héctor Ramón Jiménez
32cd456fb9
Account for transformation in Text::visible_bounds
2024-04-10 16:26:55 +02:00
Héctor Ramón Jiménez
1e802e776c
Reintroduce damage tracking for iced_tiny_skia
2024-04-10 15:21:42 +02:00
Héctor Ramón
ee105e3bee
Merge pull request #2380 from alex-ds13/master
...
Remove extra Download struct from dowload_progress example
2024-04-09 22:40:58 +02:00
Héctor Ramón Jiménez
14b9708f72
Remove leftover renderer module in iced_graphics
2024-04-09 22:29:03 +02:00
Héctor Ramón Jiménez
6ad5bb3597
Port iced_tiny_skia to new layering architecture
2024-04-09 22:25:16 +02:00