Commit graph

727 commits

Author SHA1 Message Date
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
1313c94e3b
Remove hash_layout method from Widget trait 2022-02-23 21:31:54 +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
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
Emi Simpson
ca1fcdaf14
Add support for ContentFit for Image 2022-02-16 18:19:33 +07:00
Héctor Ramón Jiménez
90afd1db8d
Use MaybeSend in perform and map for Command 2022-01-28 21:51:13 +07:00
Héctor Ramón Jiménez
e730d97f61
Implement time module for wasm-bindgen backend in iced_futures 2022-01-28 21:37:17 +07:00
Héctor Ramón Jiménez
5dab5a327e
Introduce MaybeSend trait in iced_futures
It allows to clean up all the `trait_aliases` modules!
2022-01-28 21:37:17 +07:00
Héctor Ramón Jiménez
83c649b574
Move time module from iced_native to iced_core 2022-01-28 21:37:16 +07:00
Héctor Ramón Jiménez
87b3e03d18
Enable instant only for wasm32 targets
... and hide the dependency under a `time` module in `iced_native`
2022-01-28 21:37:16 +07:00
Kai Mast
9f47ac8d31
Use instant instead of std::instant 2022-01-28 21:37:15 +07:00
Vladyslav Nikonov
bdca20fc4a
Experimental wgpu WebGL backend support
- Added missing `draw_cache_align_4x4` call for `brush_glyph` on wasm32 target
- Added WebGL support to `integratio_wgpu` example
- Fixed test.yml CI workflow
- Removed spir-v shader in `integration_wgpu`; Fixed formatting
- Removed redundant `BoxStream` typedef
2022-01-28 21:37:14 +07:00
Héctor Ramón Jiménez
876aa93788
Fix previous overlay affecting cursor_position during draw in UserInterface 2022-01-22 13:44:30 +07:00
Héctor Ramón Jiménez
93285d85b0
Remove ambiguous text_color attributes for Checkbox and Radio
Instead, always use a `StyleSheet`.
2022-01-20 18:34:15 +07:00
Héctor Ramón Jiménez
5ce8653fb5
Add worker example to docs of subscription::unfold 2022-01-17 15:48:37 +07:00
Héctor Ramón Jiménez
ddbbe7353b
Simplify run and unfold helpers to build a Subscription 2022-01-17 15:29:41 +07:00
Héctor Ramón Jiménez
dc50a2830a
Draft websocket example 🎉 2022-01-16 15:50:19 +07:00
Héctor Ramón Jiménez
35e4f30759
Implement subscription::worker 🎉 2022-01-14 19:55:50 +07:00
Héctor Ramón Jiménez
2a3271dc10
Implement subscription::unfold 🎉 2022-01-14 19:55:27 +07:00
Héctor Ramón Jiménez
7442d0b66f
Implement subscription::run 🎉 2022-01-14 19:43:54 +07:00
Héctor Ramón Jiménez
810b445f8d
Rewrite events and events_with with a new Runner abstraction 2022-01-14 19:43:06 +07:00
Héctor Ramón Jiménez
7ef0259a2c
Write missing docs for user_interface module 2022-01-12 11:22:57 +07:00
Héctor Ramón Jiménez
870d651f35
Implement Widget::overlay for Responsive widget 2022-01-12 11:15:05 +07:00
Héctor Ramón Jiménez
2e255b7b91
Implement Widget::mouse_interaction for Responsive 2022-01-11 14:21:38 +07:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event 2022-01-11 14:12:28 +07:00
Héctor Ramón Jiménez
6ab4611a6e
Invalidate widget tree from Responsive widget
... by introducing a new `invalidate_widgets` method to `Shell`
2022-01-11 13:47:43 +07:00
Héctor Ramón Jiménez
90c20ac46b
Draft Responsive widget 2022-01-11 10:47:56 +07:00
LordRatte
ff2a470fd8
Change GitHub namespace to new org for all files 2022-01-03 11:36:13 +07:00
Héctor Ramón
d19858bce8
Merge pull request #1154 from nicksenger/overlay-components
Implement `overlay` for `Component`
2021-12-19 11:41:18 +07:00
Héctor Ramón Jiménez
48b2264bc6
Simplify component implementation in iced_lazy 2021-12-13 17:46:39 +07:00
Olivier Pinon
d06e6bfb51 Lower text::Renderer's Font bound from Copy to Clone 2021-12-10 23:34:02 +01:00
Olivier Pinon
a7bcd65bb8 Decouple the image Handle type from the iced_native implementation 2021-12-10 23:33:58 +01:00
nlevy
b479ba4821 Make TextInput emit a Submit message when the key NumpadEnter is pressed 2021-12-09 10:58:50 +01:00
Héctor Ramón Jiménez
998a04645d
Use commit hash in html_logo_url 2021-12-09 15:10:38 +07:00
daladim
d72b1493e0
Added icon in docs 2021-12-09 15:05:41 +07:00
Héctor Ramón Jiménez
aed5a0d5f9
Remove unused field in scrollable::Scrollbar 2021-12-07 16:11:55 +07:00
Imbris
f86d96be0f Include alignment in the container layout hash 2021-12-06 14:27:24 -05:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
bffa7203df
Create iced_lazy and draft Component trait 2021-11-29 15:04:12 +07:00
Héctor Ramón
96c7f9765c
Merge pull request #1118 from TannerRogalsky/native-web-fixes
Native web fixes.
2021-11-29 14:51:35 +07:00
Héctor Ramón
aeec0375f0
Merge pull request #1125 from iced-rs/fix/overlay-layer-clip-bounds
Fix overflow of graphics primitives in overlays
2021-11-23 17:44:57 +07:00
Héctor Ramón Jiménez
92b3b169c6
Fix overflow of graphics primitives in overlays
... by using `overlay_bounds` instead of `viewport` as clip bounds for overlay layer in `UserInterface::draw`
2021-11-21 15:09:53 +07:00
Héctor Ramón Jiménez
77aa05afd3
Fix implementation of Widget::mouse_interaction for PaneGrid 2021-11-21 15:06:01 +07:00
Héctor Ramón
d165b789df
Merge pull request #1114 from tarkah/fix/slider-optimization
Don't rebroadcast redundant slider messages
2021-11-16 16:00:31 +07:00
Héctor Ramón Jiménez
1ce02e8c7a
Derive Eq for slider::State again 2021-11-15 15:33:02 +07:00