blob: 3d6cf902fe1a9b3817413ba191b7f07fe21a2a9c (
plain) (
tree)
|
|
## Custom widget
A demonstration of how to build a custom widget that draws a circle.
The __[`main`]__ file contains all the code of the example.
<div align="center">
<a href="https://gfycat.com/jealouscornyhomalocephale">
<img src="https://thumbs.gfycat.com/JealousCornyHomalocephale-small.gif">
</a>
</div>
You can run it with `cargo run`:
```
cargo run --package custom_widget
```
[`main`]: src/main.rs
|