Héctor Ramón Jiménez
b549b509c9
Align text in iced_wgpu on a case-by-case basis
2020-04-10 01:39:36 +02:00
Héctor Ramón Jiménez
3f7dd50594
Use !is_empty() instead of len() > 0
2020-03-29 15:04:11 +02:00
Kai Mast
442a52be07
Fix formatting
2020-03-28 15:30:51 -07:00
Kai Mast
cbe9298a0b
Clippy
2020-03-28 15:25:55 -07:00
Héctor Ramón Jiménez
b74e7e7353
Implement Primitive::Cached
2020-03-07 23:45:54 +01:00
Héctor Ramón Jiménez
88d4cd0970
Remove unnecessary pub(crate) use
2020-02-28 14:41:07 +01:00
Héctor Ramón Jiménez
4e7159c22c
Stop creating image pipeline when unnecessary
2020-02-28 14:38:42 +01:00
Héctor Ramón Jiménez
59d45a5440
Refactor texture atlas
...
- Split into multiple modules
- Rename some concepts
- Change API details
2020-02-26 12:34:34 +01:00
Héctor Ramón Jiménez
be14aca075
Make output format of iced_wgpu configurable
2020-02-24 20:08:40 +01:00
Héctor Ramón Jiménez
126133ead7
Fix Clip primitive intersection in iced_wgpu
2020-02-22 18:25:43 +01:00
Héctor Ramón Jiménez
dadae12253
Implement MSAA for triangle pipeline in iced_wgpu
2020-02-15 10:08:27 +01:00
Héctor Ramón Jiménez
578ea4abb8
Finish clock example
2020-02-12 08:49:42 +01:00
Héctor Ramón Jiménez
5f89fab9d7
Improve consistency in new iced_wgpu types
2020-02-09 05:31:42 +01:00
Héctor Ramón Jiménez
8f0b59a4b2
Remove scale_factor from iced_wgpu::Viewport
2020-02-09 03:36:59 +01:00
Héctor Ramón Jiménez
f1e20a61f1
Allow iced_wgpu to render to any TextureView
2020-02-09 03:25:13 +01:00
Héctor Ramón Jiménez
fb4a7968ca
Update winit to 0.20
2020-02-07 23:34:32 -05:00
Héctor Ramón Jiménez
e6aa25a103
Make layout bounds explicit in UserInterface
2020-01-10 03:10:58 +01:00
Héctor Ramón Jiménez
e45497dfd6
Move Debugger and Windowed to a better location
...
We move `renderer::Debugger` to `layout::Debugger` and
`renderer::Windowed` to `window::Renderer`.
2020-01-10 01:58:55 +01:00
Héctor Ramón Jiménez
bbc8f837d7
Merge branch 'master' into feature/custom-styling
2020-01-05 22:03:32 +01:00
Héctor Ramón Jiménez
8d6f86b317
Remove background from Settings
2020-01-05 18:11:54 +01:00
Héctor Ramón Jiménez
5ca98b113e
Rename Geometry2D to Mesh2D and move it to iced_wgpu
2020-01-02 19:25:00 +01:00
Artur Sapek
0d620b7701
Implement Geometry2D primitive
2020-01-01 22:45:29 -07:00
Héctor Ramón Jiménez
d96ced8e2d
Allow configuration of default font
2020-01-01 17:49:48 +01:00
Héctor Ramón Jiménez
9ab7c47dc7
Add border_width and border_color to Quad
2019-12-31 21:38:52 +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
f74ab463d4
Add background_color to Settings
2019-12-29 12:29:47 +01:00
Héctor Ramón Jiménez
c7b170da6d
Draft Style and StyleSheet for Button
2019-12-29 10:57:01 +01:00
Héctor Ramón Jiménez
09707f29fc
Rerasterize SVGs when resized and refactor a bit
2019-12-15 06:19:07 +01:00
Malte Veerman
895eaef99b
Merged svg pipeline into image
2019-12-12 01:14:54 +01:00
Malte Veerman
f737c6da24
Improved dpi handling
2019-12-12 00:20:06 +01:00
Malte Veerman
5696afcadd
Ran cargo_fmt over changed files.
2019-12-11 22:13:29 +01:00
Malte Veerman
8032428428
Implemented SVG support in iced_wgpu.
2019-12-11 20:02:43 +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
e648de560d
Use PowerPreference::Default in iced_wgpu
2019-12-01 23:36:29 +01:00
Héctor Ramón Jiménez
fab6d79e84
Implement basic image cache trimming in iced_wgpu
2019-11-30 02:55:14 +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
6a0e442ad6
Write docs for iced_wgpu
2019-11-22 22:14:24 +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
00479d8bcd
Fix text bounds in iced_wgpu on nonintegral DPI
2019-11-14 03:00:57 +01:00
Héctor Ramón Jiménez
6857829dc3
Draft Font type and implement Text::font
2019-11-13 07:22:21 +01:00
Héctor Ramón Jiménez
f0b1e65ba4
Move text logic in iced_wgpu to a text module
2019-11-13 03:54:36 +01:00
Héctor Ramón Jiménez
73f3c90007
Load default font only in measurement cache
2019-11-11 21:33:05 +01:00
Héctor Ramón Jiménez
860a6923bb
Split text measurements cache from rendering cache
...
This speeds up layouting in the most common scenario considerably!
🎉
2019-11-11 06:07:31 +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
e66d38403d
Merge pull request #47 from hecrj/improvement/text-performance
...
Improve text rendering performance in some scenarios
2019-11-08 22:40:16 +01:00
memoryruins
e7bd24c13e
use Color's From impl in more places
2019-11-07 01:03:29 -05:00
Héctor Ramón Jiménez
79f31b66c3
Increase initial size of text cache in iced_wgpu
...
This reduces the amount of cache updates in general when text changes.
The new cache should take 4MB of VRAM. I think this is reasonable for a
modern GUI toolkit. In any case, we should be able to reduce this value in the
future.
2019-11-07 06:59:27 +01:00
Héctor Ramón Jiménez
5fd0c724b2
Align text position to pixel grid in iced_wgpu
...
This avoids re-rasterizing glyphs and cache reuploads when the HiDPI factor is
nonintegral.
2019-11-07 06:51:42 +01:00
Héctor Ramón Jiménez
904818ccb0
Floor layer coords to avoid excessive clipping
2019-11-07 02:05:11 +01:00