Commit graph

1200 commits

Author SHA1 Message Date
Cedric Hutchings
d5b9dee2fd
Attempt to appease rustfmt 2020-06-02 16:48:55 -04:00
Cedric Hutchings
99eda093d6
Prevent gratuitous resizing in integration example
If I didn't miss anything, that `resized` variable is never set back to `false`, meaning that swapchain recreation is retriggered every frame after the first resize.
2020-06-02 16:40:46 -04: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
b96d87ff69 Revert "Merge pull request #371 from myfreeweb/window-alpha"
This reverts commit 2ba9598f80, reversing
changes made to d34f8e06c8.
2020-06-01 22:07:29 +02:00
Héctor Ramón
2ba9598f80
Merge pull request #371 from myfreeweb/window-alpha
Add custom window background/clear color (incl. transparency) support, fixes #272
2020-06-01 22:01:28 +02:00
Héctor Ramón
d34f8e06c8
Merge pull request #370 from azriel91/improvement/58/feature-gate-font-kit
Improvement/58/feature gate font kit
2020-06-01 21:47:45 +02:00
Greg V
a65d6a11cb Add custom window background/clear color (incl. transparency) support, fixes #272
wgpu would currently ignore the alpha: https://github.com/gfx-rs/wgpu/issues/687

glow (and naively patched wgpu) requires premultiplied alpha, so if you don't
multiply the RGB by the A right now, the semi-transparent color would be wrong
(too bright).

winit with_transparent doesn't seem necessary.
2020-06-01 21:31:19 +03:00
Azriel Hoh
86f0e3d4e2 Update CHANGELOG.md. 2020-05-31 11:00:23 +12:00
Azriel Hoh
ae9521e500 Feature gate font-kit behind "default_system_font" feature. 2020-05-31 11:00:17 +12:00
Héctor Ramón Jiménez
05750bf186 Fix Backend link in iced_glow docs 2020-05-30 03:05:12 +02:00
Héctor Ramón Jiménez
6cb90570a3 Expose Backend in iced_glow 2020-05-30 03:04:16 +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
96b2afba31
Merge pull request #369 from hecrj/async-wgpu-compositor-creation
Implement async `Compositor::request` in `iced_wgpu`
2020-05-30 00:31:23 +02:00
Héctor Ramón
f8cb3acc48
Merge pull request #365 from Imberflur/text-input-font
Make `Font` an associated type of `text_input::Renderer`
2020-05-29 23:10:14 +02:00
Héctor Ramón Jiménez
3ef49cd51c Re-export Antialiasing in iced_wgpu 2020-05-29 23:09:15 +02:00
Héctor Ramón Jiménez
0691ec3195 Implement async Compositor::request in iced_wgpu 2020-05-29 23:08:34 +02:00
Imbris
490a437b2f Make Font an associated type of text_input::Renderer 2020-05-29 15:37:25 -04:00
Héctor Ramón Jiménez
ab0ee1a8d0 Expose pane_grid::{Node, Content} in iced_glow 2020-05-29 02:24:09 +02:00
Héctor Ramón
01a4d65404
Merge pull request #363 from Imberflur/text-clone
Make the Text widget Clone even if the Renderer isn't
2020-05-29 02:14:09 +02:00
Héctor Ramón
8a864fcce9
Merge pull request #359 from hecrj/improvement/update-wgpu_glyph
Update `wgpu_glyph` and `glyph_brush`
2020-05-29 02:13:26 +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
67b6f044e8 Use published version of wgpu_glyph 2020-05-29 01:55:51 +02:00
Héctor Ramón Jiménez
e11b5c614f Revert "Target physical pixels for quads in iced_glow"
This reverts commit 45511a442f.
2020-05-28 22:57:30 +02:00
Héctor Ramón Jiménez
6de0a2c371 Use Sandbox in tour example 2020-05-28 22:50:40 +02:00
Héctor Ramón Jiménez
7f9813d4b3 Revert "Merge pull request #362 from hecrj/fix/target-quad-pixels"
This reverts commit 40501f630d, reversing
changes made to 5324eb1024.
2020-05-28 22:44:52 +02:00
Héctor Ramón
d3db055583
Merge pull request #354 from hecrj/feature/glow-renderer
OpenGL renderer and backend-agnostic graphics subcrate
2020-05-28 21:52:34 +02:00
Héctor Ramón Jiménez
709ed1f3f7 Fix iced_native mention of old window::Backend 2020-05-28 21:30:33 +02:00
Imbris
0a775191ab Loosen bounds on Text Clone impl 2020-05-27 22:12:38 -04:00
Héctor Ramón Jiménez
16c1261d82 Enable doc_cfg for docs.rs in iced_glow 2020-05-28 04:03:51 +02:00
Héctor Ramón
ead4186870
Merge pull request #361 from clarkmoody/pane-grid-spacing
Proper Pane Grid spacing
2020-05-28 03:45:22 +02:00
Héctor Ramón
40501f630d
Merge pull request #362 from hecrj/fix/target-quad-pixels
Align quads to physical pixels in `iced_wgpu`
2020-05-28 03:20:40 +02:00
Héctor Ramón Jiménez
4aa0d7a13a Write documentation for iced_glutin 2020-05-28 02:57:03 +02:00
Héctor Ramón Jiménez
ef28347f1c Write documentation for new iced_winit API 2020-05-28 02:49:32 +02:00
Héctor Ramón Jiménez
508128436c Write documentation for new iced_native API 2020-05-28 02:04:31 +02:00
Héctor Ramón Jiménez
b9d42a45a8 Write documentation for iced_glow 2020-05-28 01:46:17 +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
45511a442f Target physical pixels for quads in iced_glow 2020-05-27 23:17:21 +02:00
Héctor Ramón Jiménez
823ea15732 Update glyph_brush and glow_glyph 2020-05-27 23:09:27 +02:00
Clark Moody
858eafe22e Structured test cases 2020-05-27 14:24:33 -05:00
Héctor Ramón Jiménez
22ced3485e Introduce feature flags to enable iced_glow
Also keep `iced_wgpu` as the default renderer for the time being.
2020-05-27 05:05:13 +02:00
Héctor Ramón Jiménez
fbe3aa3cf4 Align quads to physical pixels in iced_wgpu 2020-05-27 00:23:42 +02:00
Clark Moody
9079014974 Tests for axis split 2020-05-26 16:47:29 -05:00
Clark Moody
334dd09817 Pane Grid spacing applied prior to rounding
On low-DPI screens, the rounding order of operations made it impossible
to produce an odd-pixel spacing. Specifying 1, for instance, produced
zero space between panes.

This approach subtracts half the spacing from the first pane prior to
rounding and uses the whole spacing for the second pane size and
coordinate.
2020-05-26 16:24:18 -05:00
Héctor Ramón Jiménez
f5ee6d0e51 Update wgpu_glyph and glyph_brush 2020-05-25 21:49:16 +02:00
Héctor Ramón
5324eb1024
Merge pull request #358 from hecrj/improvement/pane-grid-ergonomics
Implement `State::layout` and `State::with_content` in `pane_grid`
2020-05-25 20:34:10 +02:00
Héctor Ramón Jiménez
230bd6f747 Write documentation for new pane_grid API 2020-05-23 01:51:34 +02:00
Héctor Ramón Jiménez
2ab7341fa5 Implement State::with_content in pane_grid 2020-05-22 21:56:50 +02:00
Héctor Ramón Jiménez
32b9c1fdbd Return new Split in pane_grid::State::split 2020-05-22 21:55:55 +02:00
Héctor Ramón Jiménez
c620e4dc4c Implement State::get in pane_grid 2020-05-22 21:55:45 +02:00
Héctor Ramón Jiménez
f3d54a0f33 Expose Node and State::layout for PaneGrid 2020-05-22 21:55:31 +02:00