diff options
author | 2019-09-05 09:37:54 +0200 | |
---|---|---|
committer | 2019-09-05 09:37:54 +0200 | |
commit | b81ab91e671c4dc65567e6c68a205eecd7f87f32 (patch) | |
tree | 119973d3f6675b373082070b2e113e3ab35d4ebb /examples/README.md | |
parent | ced3ffc22570048711fefba638782a31d0e06035 (diff) | |
download | iced-b81ab91e671c4dc65567e6c68a205eecd7f87f32.tar.gz iced-b81ab91e671c4dc65567e6c68a205eecd7f87f32.tar.bz2 iced-b81ab91e671c4dc65567e6c68a205eecd7f87f32.zip |
Complete examples `README`
Diffstat (limited to 'examples/README.md')
-rw-r--r-- | examples/README.md | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/examples/README.md b/examples/README.md index df2cac3c..0a8a126e 100644 --- a/examples/README.md +++ b/examples/README.md @@ -15,6 +15,16 @@ The example is built on top of [`ggez`], a game library for Rust. Currently, it is using a [personal fork] to [add a `FontCache` type] and [fix some issues with HiDPI]. +The implementation consists of different modules: + - __[`tour`]__ contains the actual GUI code: __state__, __messages__, + __update logic__ and __view logic__. + - __[`renderer`]__ implements a simple renderer for each of the used widgets on + top of the graphics module of [`ggez`]. + - __[`widget`]__ re-exposes Iced's built-in widgets with the renderer type parameter + replaced with the implemented [`renderer`], for convenience. + - __[`main`]__ integrates Iced with [`ggez`] and connects the [`tour`] with + the [`renderer`]. + ``` cargo run --example tour ``` @@ -22,6 +32,10 @@ cargo run --example tour [![Tour - Iced][gui_gif]][gui_gfycat] [`ggez`]: https://github.com/ggez/ggez +[`tour`]: tour/tour.rs +[`renderer`]: tour/renderer +[`widget`]: tour/widget.rs +[`main`]: tour/main.rs [personal fork]: https://github.com/hecrj/ggez [add a `FontCache` type]: https://github.com/ggez/ggez/pull/679 [fix some issues with HiDPI]: https://github.com/hecrj/ggez/commit/dfe2fd2423c51a6daf42c75f66dfaeaacd439fb1 @@ -35,7 +49,7 @@ Since [Iced was born in May], it has been powering the user interfaces in [Coffee], an experimental 2D game engine. If you want to give Iced a try without having to write your own renderer, -the [`ui` module] in [Coffee] is probably your best choice as of now. +the __[`ui` module]__ in [Coffee] is probably your best choice as of now. [![Tour - Coffee][coffee_gui_gif]][coffee_gui_gfycat] |