summaryrefslogtreecommitdiffstats
path: root/web/src/widget/image.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-01-28Replace `iced_web` with WebGL support in `wgpu` :tada:Libravatar Héctor Ramón Jiménez1-186/+0
2021-04-10Use data urls instead of blob URLsLibravatar Liam Murphy1-15/+6
I didn't do this originally because I was half doing it in the first place to mess with Blob URLs, and it feels kinda wrong to be encoding it as base64 when that option is available. But not having memory leaks is more important.
2021-03-21fix: Don't rely on image handle not being droppedLibravatar Liam Murphy1-36/+21
It now causes a memory leak, though. :/
2021-03-21feat(web): Support in-memory image dataLibravatar Liam Murphy1-0/+39
I had to create two methods which basically do the same thing, `from_memory` and `from_slice`, but `from_memory` takes ownership of the bytes to be compatible with `iced_native`. Also, `Data` is incompatible, because if I stored the bytes in `Data` and created a new object URL every render, it would have caused a memory leak because bumpalo doesn't call destructors and there'd be no way to call URL.revokeObjectUrl on it. It's also more efficient this way.
2020-11-26Use recently stabilized intra-doc linksLibravatar Héctor Ramón Jiménez1-18/+0
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-07-01Use `String::from_str_in` in `iced_web`Libravatar Héctor Ramón Jiménez1-6/+11
2020-04-21add some accessibility features to web widgetsLibravatar Tom Pridham1-1/+15
2020-02-06Add `From<String>` for `image::Handle` in `iced_web`Libravatar Héctor Ramón Jiménez1-0/+6
2020-02-05Add `Handle` and `Data` to `image` in `iced_web`Libravatar Héctor Ramón Jiménez1-5/+78
2020-02-05Rename module `style` to `css` in `iced_web`Libravatar Héctor Ramón Jiménez1-2/+2
2019-12-30Add `Length::FillPortion` variantLibravatar Héctor Ramón Jiménez1-1/+1
It allows to specify the amount of available space an element should take relative to other elements.
2019-11-23Make `tour` work with `iced_web` again :tada:Libravatar Héctor Ramón Jiménez1-1/+2
- Implements `TextInput`, `Scrollable`, and `Container` - Adds basic style generation
2019-11-21Move widgets from `core` to `native` and `web`Libravatar Héctor Ramón Jiménez1-1/+49
Also made fields private and improved `Renderer` traits.
2019-10-22Remove generic handle in `Image`Libravatar Héctor Ramón Jiménez1-5/+5
For now, we will simply assume images will be loaded from a given path.
2019-09-21Make example work on web and update READMEsLibravatar Héctor Ramón Jiménez1-0/+2
2019-09-20Create `iced_core` and `iced_native`Libravatar Héctor Ramón Jiménez1-6/+14
2019-09-15Draft nodes for missing widgetsLibravatar Héctor Ramón Jiménez1-2/+23
2019-09-14Draft web runtime and widgetsLibravatar Héctor Ramón Jiménez1-0/+11