|
|
@ -108,7 +108,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
[qr_code]: https://github.com/iced-rs/iced/pull/622
|
||||
[#193]: https://github.com/iced-rs/iced/pull/193
|
||||
[`glutin`]: https://github.com/rust-windowing/glutin
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu
|
||||
[`glow`]: https://github.com/grovesNL/glow
|
||||
[the `qrcode` crate]: https://docs.rs/qrcode/0.12.0/qrcode/
|
||||
[integration with existing applications]: https://github.com/iced-rs/iced/pull/183
|
||||
|
|
@ -207,7 +207,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
[`wasm-bindgen-futures`]: https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures
|
||||
[`resvg`]: https://github.com/RazrFalcon/resvg
|
||||
[`raqote`]: https://github.com/jrmuizel/raqote
|
||||
[`iced_wgpu`]: https://github.com/iced-rs/iced/tree/master/wgpu
|
||||
[`iced_wgpu`]: wgpu/
|
||||
|
||||
|
||||
## [0.1.0-beta] - 2019-11-25
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ Finally, [`iced`] unifies everything into a simple abstraction to create cross-p
|
|||
[`iced`]: ..
|
||||
[`futures`]: https://github.com/rust-lang/futures-rs
|
||||
[`glow`]: https://github.com/grovesNL/glow
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu
|
||||
[`winit`]: https://github.com/rust-windowing/winit
|
||||
[`glutin`]: https://github.com/rust-windowing/glutin
|
||||
[`dodrio`]: https://github.com/fitzgen/dodrio
|
||||
|
|
|
|||
32
README.md
|
|
@ -43,23 +43,23 @@ Inspired by [Elm].
|
|||
__iced is currently experimental software.__ [Take a look at the roadmap],
|
||||
[check out the issues], and [feel free to contribute!]
|
||||
|
||||
[Cross-platform support]: https://github.com/hecrj/iced/blob/master/docs/images/todos_desktop.jpg?raw=true
|
||||
[Cross-platform support]: https://raw.githubusercontent.com/iced-rs/iced/master/docs/images/todos_desktop.jpg
|
||||
[the Web]: https://iced.rs/
|
||||
[text inputs]: https://gfycat.com/alertcalmcrow-rust-gui
|
||||
[scrollables]: https://gfycat.com/perkybaggybaboon-rust-gui
|
||||
[Debug overlay with performance metrics]: https://gfycat.com/incredibledarlingbee
|
||||
[Modular ecosystem]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md
|
||||
[renderer-agnostic native runtime]: https://github.com/hecrj/iced/tree/master/native
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||
[Modular ecosystem]: ECOSYSTEM.md
|
||||
[renderer-agnostic native runtime]: native/
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu
|
||||
[`glow`]: https://github.com/grovesNL/glow
|
||||
[`iced_wgpu`]: https://github.com/hecrj/iced/tree/master/wgpu
|
||||
[`iced_glow`]: https://github.com/hecrj/iced/tree/master/glow
|
||||
[built-in renderers]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md#Renderers
|
||||
[windowing shell]: https://github.com/hecrj/iced/tree/master/winit
|
||||
[`iced_wgpu`]: wgpu/
|
||||
[`iced_glow`]: glow/
|
||||
[built-in renderers]: ECOSYSTEM.md#Renderers
|
||||
[windowing shell]: winit/
|
||||
[`dodrio`]: https://github.com/fitzgen/dodrio
|
||||
[web runtime]: https://github.com/hecrj/iced/tree/master/web
|
||||
[Take a look at the roadmap]: https://github.com/hecrj/iced/blob/master/ROADMAP.md
|
||||
[check out the issues]: https://github.com/hecrj/iced/issues
|
||||
[web runtime]: https://github.com/iced-rs/iced_web
|
||||
[Take a look at the roadmap]: ROADMAP.md
|
||||
[check out the issues]: https://github.com/iced-rs/iced/issues
|
||||
[feel free to contribute!]: #contributing--feedback
|
||||
|
||||
## Installation
|
||||
|
|
@ -72,7 +72,7 @@ iced = "0.3"
|
|||
__iced moves fast and the `master` branch can contain breaking changes!__ If
|
||||
you want to learn about a specific release, check out [the release list].
|
||||
|
||||
[the release list]: https://github.com/hecrj/iced/releases
|
||||
[the release list]: https://github.com/iced-rs/iced/releases
|
||||
|
||||
## Overview
|
||||
Inspired by [The Elm Architecture], iced expects you to split user interfaces
|
||||
|
|
@ -188,17 +188,17 @@ Since then, the focus has shifted towards providing a batteries-included,
|
|||
end-user-oriented GUI library, while keeping [the ecosystem] modular:
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md">
|
||||
<a href="ECOSYSTEM.md">
|
||||
<img alt="iced ecosystem" src="docs/graphs/ecosystem.png" width="80%">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
[this pull request]: https://github.com/hecrj/coffee/pull/35
|
||||
[The first alpha version]: https://github.com/hecrj/iced/tree/0.1.0-alpha
|
||||
[The first alpha version]: https://github.com/iced-rs/iced/tree/0.1.0-alpha
|
||||
[a renderer-agnostic GUI library]: https://www.reddit.com/r/rust/comments/czzjnv/iced_a_rendereragnostic_gui_library_focused_on/
|
||||
[tour example]: https://github.com/hecrj/iced/blob/master/examples/README.md#tour
|
||||
[tour example]: examples/README.md#tour
|
||||
[`ggez`]: https://github.com/ggez/ggez
|
||||
[the ecosystem]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md
|
||||
[the ecosystem]: ECOSYSTEM.md
|
||||
|
||||
## Common problems
|
||||
|
||||
|
|
|
|||
30
ROADMAP.md
|
|
@ -20,15 +20,15 @@ Once a step is completed, it is collapsed and added to this list:
|
|||
* [x] Canvas for 2D graphics ([#193])
|
||||
* [x] Basic overlay support ([#444])
|
||||
|
||||
[#24]: https://github.com/hecrj/iced/issues/24
|
||||
[#25]: https://github.com/hecrj/iced/issues/25
|
||||
[#26]: https://github.com/hecrj/iced/issues/26
|
||||
[#28]: https://github.com/hecrj/iced/issues/28
|
||||
[#52]: https://github.com/hecrj/iced/pull/52
|
||||
[#122]: https://github.com/hecrj/iced/pull/122
|
||||
[#146]: https://github.com/hecrj/iced/pull/146
|
||||
[#193]: https://github.com/hecrj/iced/pull/193
|
||||
[#444]: https://github.com/hecrj/iced/pull/444
|
||||
[#24]: https://github.com/iced-rs/iced/issues/24
|
||||
[#25]: https://github.com/iced-rs/iced/issues/25
|
||||
[#26]: https://github.com/iced-rs/iced/issues/26
|
||||
[#28]: https://github.com/iced-rs/iced/issues/28
|
||||
[#52]: https://github.com/iced-rs/iced/pull/52
|
||||
[#122]: https://github.com/iced-rs/iced/pull/122
|
||||
[#146]: https://github.com/iced-rs/iced/pull/146
|
||||
[#193]: https://github.com/iced-rs/iced/pull/193
|
||||
[#444]: https://github.com/iced-rs/iced/pull/444
|
||||
|
||||
### Multi-window support ([#27])
|
||||
Open and control multiple windows at runtime.
|
||||
|
|
@ -37,7 +37,7 @@ I think this could be achieved by implementing an additional trait in `iced_wini
|
|||
|
||||
This approach should also allow us to perform custom optimizations for this particular use case.
|
||||
|
||||
[#27]: https://github.com/hecrj/iced/issues/27
|
||||
[#27]: https://github.com/iced-rs/iced/issues/27
|
||||
|
||||
### Animations ([#31])
|
||||
Allow widgets to request a redraw at a specific time.
|
||||
|
|
@ -46,7 +46,7 @@ This is a necessary feature to render loading spinners, a blinking text cursor,
|
|||
|
||||
[`winit`] allows flexible control of its event loop. We may be able to use [`ControlFlow::WaitUntil`](https://docs.rs/winit/0.20.0-alpha3/winit/event_loop/enum.ControlFlow.html#variant.WaitUntil) for this purpose.
|
||||
|
||||
[#31]: https://github.com/hecrj/iced/issues/31
|
||||
[#31]: https://github.com/iced-rs/iced/issues/31
|
||||
|
||||
### Canvas widget for 3D graphics ([#32])
|
||||
A widget to draw freely in 3D. It could be used to draw charts, implement a Paint clone, a CAD application, etc.
|
||||
|
|
@ -55,7 +55,7 @@ As a first approach, we could expose the underlying renderer directly here, and
|
|||
|
||||
In the long run, we could expose a renderer-agnostic abstraction to perform the drawing.
|
||||
|
||||
[#32]: https://github.com/hecrj/iced/issues/32
|
||||
[#32]: https://github.com/iced-rs/iced/issues/32
|
||||
|
||||
### Text shaping and font fallback ([#33])
|
||||
[`wgpu_glyph`] uses [`glyph_brush`], which in turn uses [`rusttype`]. While the current implementation is able to layout text quite nicely, it does not perform any [text shaping].
|
||||
|
|
@ -66,7 +66,7 @@ The only available library that does a great job at shaping is [HarfBuzz], which
|
|||
|
||||
This feature will probably imply rewriting [`wgpu_glyph`] entirely, as caching will be more complicated and the API will probably need to ask for more data.
|
||||
|
||||
[#33]: https://github.com/hecrj/iced/issues/33
|
||||
[#33]: https://github.com/iced-rs/iced/issues/33
|
||||
[`rusttype`]: https://github.com/redox-os/rusttype
|
||||
[text shaping]: https://en.wikipedia.org/wiki/Complex_text_layout
|
||||
[HarfBuzz]: https://github.com/harfbuzz/harfbuzz
|
||||
|
|
@ -77,7 +77,7 @@ Currently, `iced_native` only supports flexbox items. For instance, it is not po
|
|||
|
||||
We will need to enhance the layouting engine to support different strategies and improve the way we measure text to lay it out in a more flexible way.
|
||||
|
||||
[#34]: https://github.com/hecrj/iced/issues/34
|
||||
[#34]: https://github.com/iced-rs/iced/issues/34
|
||||
|
||||
## Ideas that may be worth exploring
|
||||
|
||||
|
|
@ -121,6 +121,6 @@ This could be very useful to build very performant user interfaces with a lot of
|
|||
|
||||
[Elm]: https://elm-lang.org/
|
||||
[`winit`]: https://github.com/rust-windowing/winit
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu
|
||||
[`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph
|
||||
[`glyph_brush`]: https://github.com/alexheretic/glyph-brush
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 302 KiB |
|
|
@ -1,14 +1 @@
|
|||
<svg width="68" height="68" viewBox="0 0 68 68" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="68" height="68" rx="18" fill="url(#paint0_linear)"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M52.2952 16.986L43.0273 26.4088L41.0081 24.4228L50.2761 15L52.2952 16.986ZM43.6175 17.0578L29.7156 31.192L27.6964 29.206L41.5983 15.0718L43.6175 17.0578ZM23.3109 24.9347C25.065 23.1615 26.8188 21.3887 30.4157 17.7317L32.4348 19.7177C28.8353 23.3774 27.0795 25.1523 25.3241 26.9267C23.8744 28.3921 22.425 29.8572 19.9355 32.3857L30.4685 35.1388L39.0223 26.442L41.0414 28.428L32.4876 37.1247L35.4218 47.6353L49.3019 33.7718L51.3033 35.7756L35.1269 51.9327L20.0283 47.7728L15.6165 32.7371L16.2 32.1438C19.7995 28.4842 21.5555 26.7091 23.3109 24.9347ZM32.6721 48.3186L29.7581 37.8804L19.2731 35.1398L22.3017 45.4614L32.6721 48.3186ZM48.3953 29.7021L50.7414 27.3561L48.7387 25.3535L46.3844 27.7078L36.4462 37.812L38.4654 39.7979L48.3953 29.7021Z" fill="url(#paint1_linear)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear" x1="34" y1="0" x2="34" y2="68" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#00A3FF"/>
|
||||
<stop offset="1" stop-color="#3300FF"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear" x1="20.5" y1="47.4656" x2="60" y2="6.96558" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="white"/>
|
||||
<stop offset="1" stop-color="white" stop-opacity="0.65"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="68" height="68" fill="none" viewBox="0 0 68 68"><rect width="68" height="68" fill="url(#paint0_linear)" rx="18"/><path fill="url(#paint1_linear)" fill-rule="evenodd" d="M52.2952 16.986L43.0273 26.4088L41.0081 24.4228L50.2761 15L52.2952 16.986ZM43.6175 17.0578L29.7156 31.192L27.6964 29.206L41.5983 15.0718L43.6175 17.0578ZM23.3109 24.9347C25.065 23.1615 26.8188 21.3887 30.4157 17.7317L32.4348 19.7177C28.8353 23.3774 27.0795 25.1523 25.3241 26.9267C23.8744 28.3921 22.425 29.8572 19.9355 32.3857L30.4685 35.1388L39.0223 26.442L41.0414 28.428L32.4876 37.1247L35.4218 47.6353L49.3019 33.7718L51.3033 35.7756L35.1269 51.9327L20.0283 47.7728L15.6165 32.7371L16.2 32.1438C19.7995 28.4842 21.5555 26.7091 23.3109 24.9347ZM32.6721 48.3186L29.7581 37.8804L19.2731 35.1398L22.3017 45.4614L32.6721 48.3186ZM48.3953 29.7021L50.7414 27.3561L48.7387 25.3535L46.3844 27.7078L36.4462 37.812L38.4654 39.7979L48.3953 29.7021Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear" x1="34" x2="34" y1="0" y2="68" gradientUnits="userSpaceOnUse"><stop stop-color="#00A3FF"/><stop offset="1" stop-color="#30F"/></linearGradient><linearGradient id="paint1_linear" x1="20.5" x2="60" y1="47.466" y2="6.966" gradientUnits="userSpaceOnUse"><stop stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity=".65"/></linearGradient></defs></svg>
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
|
@ -20,7 +20,7 @@ The __[`main`](tour/src/main.rs)__ file contains all the code of the example! Al
|
|||
[`iced_wgpu`]: ../wgpu
|
||||
[`iced_web`]: https://github.com/iced-rs/iced_web
|
||||
[`winit`]: https://github.com/rust-windowing/winit
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu
|
||||
|
||||
You can run the native version with `cargo run`:
|
||||
```
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ A color palette generator, based on a user-defined root color.
|
|||
|
||||
<div align="center">
|
||||
<a href="https://gfycat.com/dirtylonebighornsheep">
|
||||
<img src="https://github.com/hecrj/iced/raw/1a8d253611d3796b0a32b2f096bb54565a5292e0/examples/color_palette/screenshot.png">
|
||||
<img src="screenshot.png">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 44 KiB |
|
|
@ -4,8 +4,8 @@ An example showcasing the various size and style options for the Scrollable.
|
|||
All the example code is located in the __[`main`](src/main.rs)__ file.
|
||||
|
||||
<div align="center">
|
||||
<a href="./screenshot.png">
|
||||
<img src="./screenshot.png" height="640px">
|
||||
<a href="screenshot.png">
|
||||
<img src="screenshot.png" height="640px">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 16 KiB |
|
|
@ -21,7 +21,7 @@ Currently, `iced_wgpu` supports the following primitives:
|
|||
|
||||
[documentation]: https://docs.rs/iced_wgpu
|
||||
[`iced_native`]: ../native
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||
[`wgpu`]: https://github.com/gfx-rs/wgpu
|
||||
[WebGPU API]: https://gpuweb.github.io/gpuweb/
|
||||
[`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph
|
||||
|
||||
|
|
|
|||
|
|
@ -26,4 +26,4 @@ iced_winit = "0.3"
|
|||
__Iced moves fast and the `master` branch can contain breaking changes!__ If
|
||||
you want to learn about a specific release, check out [the release list].
|
||||
|
||||
[the release list]: https://github.com/hecrj/iced/releases
|
||||
[the release list]: https://github.com/iced-rs/iced/releases
|
||||
|
|
|
|||