iced/examples/tour
2019-09-05 21:17:23 +02:00
..
renderer Move ggez example to tour 2019-09-05 07:23:03 +02:00
main.rs Set cursor type only when necessary in tour 2019-09-05 21:17:23 +02:00
README.md Fix tour README links 2019-09-05 09:38:37 +02:00
renderer.rs Move ggez example to tour 2019-09-05 07:23:03 +02:00
tour.rs Apply padding to root in tour example 2019-09-05 15:19:37 +02:00
widget.rs Move ggez example to tour 2019-09-05 07:23:03 +02:00

Tour

A simple UI tour showcasing different widgets that can be built using Iced. It also shows how the library can be integrated into an existing system.

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

Tour - Iced