Commit graph

2283 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
12c1a3f829
Remove redundant widget modules in subcrates
Instead, we can define the type aliases just once in the root crate!
2022-03-09 14:10:15 +07:00
Héctor Ramón Jiménez
7d9ab71790
Remove superfluous files from pure examples 2022-03-08 22:08:38 +07:00
Héctor Ramón Jiménez
b50e208f31
Implement pure::Responsive in iced_lazy 2022-03-07 18:04:13 +07:00
Héctor Ramón Jiménez
9fd66c820d
Introduce rebuild_element helper in lazy::pure::Component 2022-03-07 16:39:04 +07:00
Héctor Ramón Jiménez
fa3bd4280e
Initialize lazy::pure::Component view properly
... during `children` and `diff` in the `Widget` implementation
2022-03-07 16:35:17 +07:00
Héctor Ramón Jiménez
fbbb864aaa
Merge branch 'master' into virtual-widgets 2022-03-07 15:36:09 +07:00
Héctor Ramón Jiménez
c35496d80f
Merge branch 'master' into virtual-widgets 2022-03-07 15:29:43 +07:00
Héctor Ramón
4411da25cf
Merge pull request #1264 from tarkah/canvas/clip
Add clip to canvas
2022-03-05 13:31:39 +07:00
Héctor Ramón Jiménez
27e859e153
Use Rectangle directly in Frame::with_clip 2022-03-02 21:03:46 +07:00
Héctor Ramón
ee6f4cb2ac
Merge pull request #1270 from iced-rs/skip-canvas-draw
Skip `Canvas::draw` if `bounds` have no logical pixels
2022-03-01 14:03:56 +07:00
Héctor Ramón Jiménez
f85b421ae7
Fix overlay flickering after Application::update 2022-03-01 14:02:46 +07:00
Héctor Ramón Jiménez
644c1b70ca
Skip Canvas::draw if bounds have no logical pixels 2022-02-28 18:15:39 +07:00
Cory Forsstrom
f40da376ce Add doc comment 2022-02-23 11:36:41 -08:00
Cory Forsstrom
16b63031c1 Add with_clip for canvas 2022-02-23 11:05:52 -08:00
Héctor Ramón
af7cbf0003
Merge pull request #1263 from iced-rs/remove-hash-layout
Remove `hash_layout` method from `Widget` trait
2022-02-23 22:41:22 +07:00
Héctor Ramón Jiménez
1313c94e3b
Remove hash_layout method from Widget trait 2022-02-23 21:31:54 +07:00
Héctor Ramón
9fe5080153
Merge pull request #1219 from Alch-Emi/image-modes
ContentFit support for images
2022-02-23 16:56:01 +07:00
Héctor Ramón Jiménez
33b9b50883
Showcase only Contain, Cover, and Fill image modes in tour 2022-02-23 16:32:12 +07:00
Héctor Ramón
e0185b8cda
Merge pull request #1262 from nicksenger/fix/overlay-layouts
Fix: overlay layout for `Responsive`
2022-02-23 15:58:39 +07:00
Nick Senger
a12a92c266
fix: overlay layout for Responsive 2022-02-22 23:38:32 +07:00
Héctor Ramón Jiménez
820d332736
Fix subscription for iced::pure::Application 2022-02-20 13:09:47 +07:00
Héctor Ramón Jiménez
9b23ea698e
Implement pure version of component example 2022-02-17 19:09:26 +07:00
Héctor Ramón Jiménez
da45b6c162
Implement pure::Component in iced_lazy 2022-02-17 19:08:54 +07:00
Héctor Ramón Jiménez
6f6ce15a20
Keep using Ferris in the image section of the tour
Wide ferris is cute :3
2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
15b4bbd49d
Hash content_fit in hash_layout of Image and Svg 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
8d94cd4c5c
Remove redundant layout.bounds() calls in Image and Svg 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
83c0e0f7a8
Add ContentFit support to Svg widget 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
c910e23919
Expose ContentFit in root 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
6822d1d9f2
Center Image inside available bounds when possible 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
0aff444941
Rename Image::fit to content_fit
... just for consistency!
2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
8b5c9dfa71
Make documentation of Image::fit consistent 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
395eacfc10
Use a new clipping layer only when necessary in Image::draw 2022-02-16 18:19:36 +07:00
Héctor Ramón Jiménez
c6486978de
Rename image module to content_fit in iced_core
Since we are just exposing the `ContentFit` type and not the module `image` at all.
2022-02-16 18:19:36 +07:00
Emi Simpson
ca1fcdaf14
Add support for ContentFit for Image 2022-02-16 18:19:33 +07:00
Héctor Ramón Jiménez
2737b21d34
Implement pure version of pick_list example 🎉 2022-02-16 17:16:34 +07:00
Héctor Ramón Jiménez
0ca066277a
Fix overlay translation for Scrollable in iced_pure 2022-02-16 17:15:56 +07:00
Héctor Ramón Jiménez
6e242fe0e5
Add pick_list function helper in iced_pure::widget 2022-02-16 17:15:43 +07:00
Héctor Ramón Jiménez
019af8ddbf
Add overlay support in iced_pure and port PickList 🎉 2022-02-16 17:07:25 +07:00
Héctor Ramón Jiménez
35e9b75e41
Introduce Tag and State opaque types in iced_pure::widget::tree 2022-02-16 15:44:50 +07:00
Héctor Ramón Jiménez
cff891833b
Implement pure version of the tour example 🎉 2022-02-13 22:19:43 +07:00
Héctor Ramón Jiménez
6689ede6d8
Implement Space in iced_pure 2022-02-13 22:18:21 +07:00
Héctor Ramón Jiménez
53f3820432
Implement Radio in iced_pure 2022-02-13 22:13:47 +07:00
Héctor Ramón Jiménez
e50e639b0e
Expose additional helpers in iced::pure 2022-02-13 19:23:51 +07:00
Héctor Ramón Jiménez
98750782f3
Introduce lifetime to on_change handler for Toggler 2022-02-13 19:23:15 +07:00
Héctor Ramón Jiménez
0fec0a2b77
Implement Toggler in iced_pure 2022-02-13 19:01:09 +07:00
Héctor Ramón Jiménez
3f1a45ca47
Implement Slider in iced_pure 2022-02-13 17:20:10 +07:00
Héctor Ramón Jiménez
45455be450
Implement Image in iced_pure 2022-02-13 16:51:31 +07:00
Héctor Ramón Jiménez
09c96a6d81
Add max_width to Column in iced_pure 2022-02-12 18:02:29 +07:00
Héctor Ramón Jiménez
4c61601aa3
Implement missing on_event and mouse_interaction for Checkbox in iced_pure 2022-02-12 17:26:49 +07:00
Héctor Ramón Jiménez
bd22cc0bc0
Implement pure version of todos example 🎉
The `Widget` trait in `iced_pure` needed to change a bit to make the
implementation of `Element::map` possible.

Specifically, the `children` method has been split into `diff` and
`children_state`.
2022-02-12 17:21:28 +07:00