Héctor Ramón Jiménez 3fb06f6666 Fix tour README links
2019-09-05 09:38:37 +02:00
..
2019-09-04 11:09:57 +02:00
2019-09-05 09:38:37 +02:00
2019-09-05 09:37:54 +02:00

Examples

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.

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

Coffee

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.

Tour - Coffee