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
Olivier Pinon
41f6a325e9
#288 Renamed XXXWidget to Marker
2020-04-12 01:20:40 +02:00
Héctor Ramón Jiménez
f4776a46bb
Genericize From implementation for image::Handle
2020-03-31 00:51:59 +02:00
Héctor Ramón Jiménez
d07304fb85
Hash type ids in Widget::hash_layout impls
2020-03-30 17:28:55 +02:00
Mark Friedenbach
e5d264caf0
Remove excess whitespace from end of line to comply with cargo fmt.
2020-03-20 15:51:05 -07:00
Soham Chowdhury
eb7e3250d3
Note BGRA requirement in Handle::from_pixels docs
2020-03-01 06:44:06 +05:30
Soham Chowdhury
1841015428
Add support for loading already-decoded image pixels
2020-02-29 07:32:42 +05:30
Malte Veerman
1bcfc9a5cc
Implemented a texture atlas for images and svgs.
2020-02-25 13:26:33 +01:00
Héctor Ramón Jiménez
9a06e481b7
Add Handle and Data to image in iced_web
2020-02-05 04:13:55 +01:00
Héctor Ramón Jiménez
8caa66be27
Add Renderer::Defaults and style inheritance
2019-12-30 12:14:26 +01:00
Héctor Ramón Jiménez
1f60e28204
Update Image::hash_layout to hash new Handle
2019-12-04 04:04:18 +01:00
Héctor Ramón Jiménez
561c3641c6
Merge branch 'master' into feature/image-from-bytes
2019-12-04 04:01:12 +01:00
Héctor Ramón Jiménez
4293dcb254
Rename image::Handle::from_bytes to from_memory
...
Also, replace `image` example with a new `pokedex` example using the
PokéAPI.
2019-12-04 03:55:33 +01:00
Nicholas Pienta
f9abee391d
Added path to image hash so it updates when path changes
2019-12-01 18:13:01 -05:00
Héctor Ramón Jiménez
1747eb2745
Fix typo in image::Handle docs
2019-11-30 04:10:16 +01:00
Héctor Ramón Jiménez
cdd34e1e4b
Implement image viewer example
2019-11-30 02:14:56 +01:00
Héctor Ramón Jiménez
505588d585
Allow to load an image from memory
...
New `image::Handle` opaque type uniquely identifying some `image::Data`,
allowing reliable caching.
2019-11-29 21:44:39 +01:00
Héctor Ramón Jiménez
f943764a29
Fix iced_native widget examples
2019-11-24 10:44:55 +01:00
Héctor Ramón Jiménez
a7dba612f0
Write docs for iced and iced_native
2019-11-22 19:36:57 +01:00
Héctor Ramón Jiménez
428509c84a
Merge branch 'master' into improvement/docs
2019-11-21 13:53:02 +01:00
Héctor Ramón Jiménez
65eb218d3d
Move widgets from core to native and web
...
Also made fields private and improved `Renderer` traits.
2019-11-21 13:47:20 +01:00
Héctor Ramón Jiménez
6cdf69e76b
Make width and height required methods
2019-11-16 22:08:49 +01:00
Héctor Ramón Jiménez
ceb02f4a36
Implement Container widget
...
Remove `align_self` and `justify_content` methods
2019-11-11 05:26:08 +01:00
Héctor Ramón Jiménez
0240c3981b
Draft custom layout engine based on druid
2019-11-11 03:08:00 +01:00
Héctor Ramón Jiménez
2303111e09
Draft new layout API
2019-11-10 01:55:32 +01:00
Héctor Ramón Jiménez
f8a232c8af
Remove generic handle in Image
...
For now, we will simply assume images will be loaded from a given path.
2019-10-22 23:20:24 +02:00
Héctor Ramón Jiménez
8846a239cf
Rename Renderer::Primitive to Renderer::Output
2019-10-11 22:15:39 +02:00
Héctor Ramón Jiménez
10e10e5e06
Make iced_core::Button customizable
...
Now it supports:
- Any kind of content
- Custom border radius
- Custom background
2019-10-08 03:13:41 +02:00
Héctor Ramón Jiménez
a90f7fcb98
Move MouseCursor to iced_wgpu
2019-10-05 03:58:23 +02:00
Héctor Ramón Jiménez
a7d1194403
Add Renderer and Primitive concepts
2019-10-05 03:56:18 +02:00
Héctor Ramón Jiménez
eda1048dbc
Complete some hash_layout implementations
2019-09-20 19:31:49 +02:00
Héctor Ramón Jiménez
b9e0f74948
Create iced_core and iced_native
2019-09-20 19:15:31 +02:00