summaryrefslogtreecommitdiffstats
path: root/examples/custom_widget/README.md
blob: 3d6cf902fe1a9b3817413ba191b7f07fe21a2a9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## 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