Commit graph

1062 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
20d79a43cc Implement Default for Point 2020-04-28 03:06:35 +02:00
Héctor Ramón Jiménez
6c2e28d20e Implement std::ops::Sub<Point> for Point 2020-04-28 01:12:27 +02:00
Héctor Ramón Jiménez
dc97d6f33e Remove interaction from solar_system example 2020-04-28 01:10:59 +02:00
Héctor Ramón
e0aa89cee7
Merge pull request #324 from ethanpailes/document-image-format-guessing
document that img handle constructors guess fmt
2020-04-27 17:49:13 +02:00
Ethan Pailes
da2ab420ce document that img handle constructors guess fmt
This patch documents the fact that a couple of the image
handle constructors know how to guess the image format based
on the data that they are provided.

I had to dig through `iced` sources until I discovered that those
routines ultimately boil down to stuff like [image::load_from_memory][1]
from the `image` crate, so I thought I would save others the trouble
of doing the same reverse-engineering

[1]: https://docs.rs/image/0.23.4/image/fn.load_from_memory.html
2020-04-26 15:03:48 -04:00
Héctor Ramón Jiménez
3f4770fd28 Bump versions 🎉 2020-04-26 17:20:56 +02:00
Héctor Ramón Jiménez
e87f3acff4 Render meshes after quads in iced_wgpu 2020-04-26 17:09:03 +02:00
Héctor Ramón
f9bfa82ebc
Merge pull request #322 from AlisCode/aliscode/321/fix-async-examples
#321 Fix async examples by feature-gating Command implementations + A…
2020-04-25 02:39:10 +02:00
Héctor Ramón Jiménez
63f54edf0c Use Rc in Command::map for Wasm 2020-04-25 02:29:40 +02:00
Olivier Pinon
f1e18d0935 #321 cargo fmt 2020-04-25 02:05:17 +02:00
Olivier Pinon
ce2ed35a1a #321 Fix async examples by feature-gating Command implementations + Add pokedex example in CI so that at least one async example is runned on CI 2020-04-25 02:03:17 +02:00
Héctor Ramón
70081c9649
Merge pull request #318 from hecrj/font-associated-type
Make `Font` an associated type of `text::Renderer`
2020-04-24 19:45:48 +02:00
Héctor Ramón Jiménez
0300b649d7 Make Font an associated type of text::Renderer 2020-04-23 22:17:11 +02:00
Héctor Ramón Jiménez
6786b8a3aa Implement Default for Font 2020-04-23 22:17:00 +02:00
Héctor Ramón
3375824630
Merge pull request #314 from katktv/patch-1
Fix a typo in ROADMAP
2020-04-22 17:08:20 +02:00
kat
f30043ddc2
Fix a typo in ROADMAP 2020-04-22 15:07:01 +03:00
Héctor Ramón Jiménez
f59832e88e Fix alignment in triangle pipeline of iced_wgpu 2020-04-19 21:56:03 +02:00
Héctor Ramón Jiménez
592cc68506 Remove Layer trait and simplify Canvas 2020-04-19 21:55:23 +02:00
Héctor Ramón Jiménez
bb424e54c5 Add interactivity to solar_system example 2020-04-19 18:48:30 +02:00
Héctor Ramón Jiménez
a97acd8fa8 Use Borrow<T> when binding in layer::Cache<T> 2020-04-19 17:59:32 +02:00
Héctor Ramón
edd01159e0
Merge pull request #305 from hecrj/element-on-event
Implement and expose `Element::on_event`
2020-04-19 15:28:53 +02:00
Héctor Ramón Jiménez
8ade09a0f6 Simplify Canvas example in documentation 2020-04-19 14:41:25 +02:00
Héctor Ramón Jiménez
0b5028b1ab Draft Program interactivity for Canvas 2020-04-19 14:39:30 +02:00
Héctor Ramón Jiménez
462ba3b2c8 Implement and expose Element::on_event 2020-04-18 21:32:04 +02:00
ethanpailes
90c3a183d5
fix progress bar docs to no longer mention buttons (#301) 2020-04-18 21:12:44 +02:00
Héctor Ramón Jiménez
ae546a5b9d Revert "Merge pull request #289 from hecrj/fix/cursor-events"
`winit` seems to produce `CursorEntered` and `CursorLeft` events after
wheel scrolling for no apparent reason (?). This causes annoying flickering when hovering some widgets on a scrollable.

I should investigate this further. We are rolling back the fix for the
time being.
2020-04-17 23:27:50 +02:00
Héctor Ramón Jiménez
b44f14e186 Fix MSAA blit vertex shader to match wgpu NDC 2020-04-16 14:54:29 +02:00
Lain-dono
b23945c78a
Change &mut wgpu::Device to &wgpu::Device (#299)
* Change `&mut wgpu::Device` to `&wgpu::Device`

* Fix for rustfmt
2020-04-16 08:06:05 +02:00
Héctor Ramón
99e020c7b5
Merge pull request #269 from hecrj/update-wgpu
Update `wgpu` to `0.5` in `iced_wgpu`
2020-04-16 04:59:56 +02:00
Héctor Ramón Jiménez
4808fcbd7e Bump versions 🎉 2020-04-15 08:58:14 +02:00
Héctor Ramón Jiménez
f37a658962 Update CHANGELOG 2020-04-15 08:44:01 +02:00
Héctor Ramón Jiménez
5cb40dc095 Mention flags are not supported by Sandbox
Fixes #291
2020-04-15 07:56:25 +02:00
Héctor Ramón
99352f02fd
Merge pull request #293 from hecrj/improvement/canvas-ergonomics
Improve `Canvas` ergonomics
2020-04-15 05:43:40 +02:00
Héctor Ramón
d0ebcdb936
Merge pull request #294 from MrMonotone/patch-1
Fix tour example
2020-04-14 08:04:12 +02:00
Héctor Ramón Jiménez
88b7dd6601 Check Wasm compilation of tour example in CI 2020-04-14 07:44:04 +02:00
Héctor Ramón Jiménez
f7825fd936 Fix Checkbox and Radio API in iced_web 2020-04-14 07:41:35 +02:00
Héctor Ramón Jiménez
6d7f2b30cc Simplify drawing logic in clock example 2020-04-14 07:19:50 +02:00
Nicholas
67fd107746
Fix tour example 2020-04-13 22:19:47 -07:00
Héctor Ramón Jiménez
3df49bebd4 Implement canvas::Path::line helper method 2020-04-14 07:08:12 +02:00
Héctor Ramón Jiménez
46cd0891d2 Implement canvas::Path::circle helper method 2020-04-14 06:54:12 +02:00
Héctor Ramón Jiménez
c545af3577 Implement canvas::Path::rectangle helper method 2020-04-14 06:49:15 +02:00
Héctor Ramón Jiménez
5c923fce48 Implement From<&str> for canvas::Text 2020-04-14 06:43:58 +02:00
Héctor Ramón Jiménez
a2296b466b Implement From<String> for canvas::Text 2020-04-14 06:43:43 +02:00
Héctor Ramón Jiménez
6779fcf621 Make Frame::fill_text take a generic Into<Text> 2020-04-14 06:40:22 +02:00
Héctor Ramón Jiménez
dce1034699 Make Frame::stroke take a generic Into<Stroke> 2020-04-14 06:39:47 +02:00
Héctor Ramón Jiménez
81096ef454 Implement From<Color> for canvas::Fill 2020-04-14 06:38:06 +02:00
Héctor Ramón Jiménez
2a795faf4e Make Frame::fill take a generic Into<Fill>
This can be used to improve readability by using your own types.
2020-04-14 06:37:27 +02:00
Héctor Ramón Jiménez
2fce83b205 Use new release of wgpu_glyph 2020-04-13 05:02:07 +02:00
Héctor Ramón
ce65097834
Merge pull request #290 from AlisCode/aliscode/288/remove-unnecessary-static
Remove unnecessary 'static lifetimes on `Renderer` traits
2020-04-13 04:49:10 +02:00
Héctor Ramón Jiménez
5e47238489 Rename leftover TextInputWidget to Marker 2020-04-13 04:38:35 +02:00