Héctor Ramón Jiménez
0a23f518c7
Remove redundant features in iced_wgpu and iced_glow
2022-11-05 03:26:19 +01:00
Héctor Ramón Jiménez
8ce8d374b1
Refactor some image traits a bit
...
- Use `Size<u32>` were applicable.
- Rename `TextureStore` to `image::Storage`.
- Rename `TextureStoreEntry` to `image::storage::Entry`.
- Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05 03:19:38 +01:00
Ian Douglas Scott
2c7c42ee93
Move image/svg handling into iced_graphics
...
The `TextureStore` trait is implemented by the atlas, and can also be
implemented in the glow renderer or in a software renderer.
The API here may be improved in the future, but API stability is
presumably not a huge issue since these types will only be used by
renderer backends.
2022-11-05 03:19:37 +01:00
Héctor Ramón Jiménez
b957453404
Run cargo fmt
2022-11-03 04:35:16 +01:00
shan
6e7b3ced0b
Reworked wgpu buffers, updated glow side to have proper transform location storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR.
2022-10-04 18:24:46 -07:00
shan
40f45d7b7e
Adds linear gradient support to 2D meshes in the canvas widget.
2022-09-29 11:15:35 -07:00
Héctor Ramón Jiménez
2f76a10a1d
Fix further clippy lints
...
... and explicitly annotate crates as well.
2022-07-09 18:03:59 +02:00
Poly
15f794b7a8
Address Clippy lints
2022-07-09 17:07:38 +02:00
LordRatte
ff2a470fd8
Change GitHub namespace to new org for all files
2022-01-03 11:36:13 +07:00
Héctor Ramón Jiménez
09d5726a26
Remove unused field in wgpu::Backend
2021-12-07 16:12:04 +07:00
Héctor Ramón Jiménez
9a3c81f336
Introduce first-class svg module in iced_native
2021-10-31 16:24:31 +07:00
Héctor Ramón Jiménez
c4186a71b7
Introduce first-class image module in iced_native
2021-10-31 16:20:50 +07:00
Héctor Ramón Jiménez
0aafcde0ef
Remove widget module re-exports in iced_native
2021-10-31 16:14:34 +07:00
Héctor Ramón Jiménez
687c35e052
Avoid flushing empty layers in iced_wgpu and iced_glow
2021-10-25 16:35:34 +07:00
Héctor Ramón Jiménez
3a0c503db9
Implement Widget::draw for Text
2021-10-14 17:00:38 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native
2021-10-14 16:07:22 +07:00
Héctor Ramón Jiménez
a0ad399622
Refactor alignment types into an alignment module
2021-09-20 15:14:08 +07:00
Héctor Ramón Jiménez
643500bbdf
Use Option to encode empty text case in hit test methods
2021-09-15 14:49:13 +07:00
Héctor Ramón Jiménez
7614127d36
Rename HitTestResult to Hit
...
... and also move it to a new `text` module in `iced_core`
2021-08-26 14:41:33 +07:00
Tom
aa63841e2c
Implement textual hit testing
2021-08-21 10:31:26 -07:00
Tilmann Meyer
d7975a9de5
wgpu: Use the preferred texture format of the surface
...
Signed-off-by: Tilmann Meyer <me@atiltedtree.dev>
2021-08-03 11:30:45 +02:00
Héctor Ramón Jiménez
217f5be827
Add text_multithreading to Settings in iced_glow and iced_wgpu
2021-07-22 18:21:50 +07:00
Greg V
8f126c212b
Add image format options to reduce code bloat, fixes #376
2021-02-13 15:53:24 +01:00
Héctor Ramón Jiménez
01322f69a4
Use recently stabilized intra-doc links
...
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
83e037829c
Update image pipeline in iced_wgpu
2020-08-27 13:41:00 +02:00
Héctor Ramón Jiménez
67d90e3946
Update wgpu to 0.6 in iced_wgpu
2020-08-27 13:03:42 +02:00
Héctor Ramón Jiménez
e29feef8ba
Render arrow icon in ComboBox
2020-07-08 11:05:15 +02:00
Héctor Ramón Jiménez
b3c192a2e4
Make default text size configurable in Settings
2020-06-19 00:16:22 +02:00
Héctor Ramón Jiménez
94af348846
Rename Rectangle::round to snap
...
Also use `ceil` instead of `round`.
Closes #380 .
2020-06-02 04:38:55 +02:00
Héctor Ramón Jiménez
6d73b94e9a
Fix documentation of Backend in iced_wgpu
2020-05-30 03:03:59 +02:00
Héctor Ramón Jiménez
0cde20b355
Merge branch 'master' into improvement/update-wgpu_glyph
2020-05-29 02:00:28 +02:00
Héctor Ramón Jiménez
2ca7e3c4b0
Write documentation for iced_graphics
2020-05-28 01:40:30 +02:00
Héctor Ramón Jiménez
823ea15732
Update glyph_brush and glow_glyph
2020-05-27 23:09:27 +02:00
Héctor Ramón Jiménez
a1a5fcfd46
Refactor Viewport and Compositor
2020-05-20 20:28:35 +02:00
Héctor Ramón Jiménez
720e7756f2
Move Layer to iced_graphics
2020-05-19 23:19:39 +02:00
Héctor Ramón Jiménez
f0480854a9
Move built-in fonts to iced_graphics
2020-05-19 20:30:46 +02:00
Héctor Ramón Jiménez
05af8d00d4
Draft new iced_graphics crate 🎉
2020-05-19 17:15:44 +02:00