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:
tourcontains the actual GUI code: state, messages, update logic and view logic.rendererimplements a simple renderer for each of the used widgets on top of the graphics module ofggez.widgetre-exposes Iced's built-in widgets with the renderer type parameter replaced with the implementedrenderer, for convenience.mainintegrates Iced withggezand connects thetourwith therenderer.
cargo run --example tour
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.