Commit graph

749 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
e33f43af31
Reuse Tooltip draw logic in iced_pure 2022-04-24 20:45:43 +07:00
Casper Rogild Storm
5d67f9988c
Implemented Tooltip as Pure 2022-04-22 13:35:53 +02:00
MG_REX
c0e10f2e9d
Fix slider's handle position calculation 2022-03-29 18:49:08 +07:00
Héctor Ramón
13a2997deb
Merge pull request #1294 from marienz/pure-overlay
Forward overlay() calls in iced_pure::element::Map
2022-03-29 18:41:02 +07:00
Héctor Ramón Jiménez
d9d6dff550
Loose lifetime bounds in pure::Widget implementations 2022-03-29 18:24:17 +07:00
Héctor Ramón Jiménez
f6700000a2
Fix KeyPressed event being always Captured by TextInput 2022-03-28 19:20:40 +07:00
Héctor Ramón Jiménez
497a3ca8ab
Restore TextInput::draw helper
This helper should be unnecessary in the future.
2022-03-18 22:22:19 +07:00
Héctor Ramón Jiménez
6dd187ff08
Implement pure version of PaneGrid widget 2022-03-14 17:44:25 +07:00
Héctor Ramón Jiménez
0fbd1d98b5
Implement pure version of Rule widget 2022-03-10 16:58:55 +07:00
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
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 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
019af8ddbf
Add overlay support in iced_pure and port PickList 🎉 2022-02-16 17:07:25 +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
98750782f3
Introduce lifetime to on_change handler for Toggler 2022-02-13 19:23:15 +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
e3108494e5
Implement TextInput in iced_pure 2022-02-12 16:11:37 +07:00
Héctor Ramón Jiménez
b2670e8752
Implement Scrollable in iced_pure 2022-02-12 15:18:31 +07:00
Héctor Ramón Jiménez
178914ec23
Implement Checkbox in iced_pure 2022-02-12 14:26:17 +07:00
Héctor Ramón Jiménez
182fb9446c
Implement Container widget in iced_pure 2022-02-12 14:07:04 +07:00
Héctor Ramón Jiménez
ecb3df8e01
Expose reusable Button logic
... and reuse it in `iced_pure`!
2022-02-11 23:17:07 +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