2020-02-21 15:12:27 +01:00
|
|
|
## 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">
|
2023-09-07 05:05:43 +02:00
|
|
|
<img src="https://iced.rs/examples/custom_widget.gif">
|
2020-02-21 15:12:27 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
You can run it with `cargo run`:
|
|
|
|
|
```
|
|
|
|
|
cargo run --package custom_widget
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
[`main`]: src/main.rs
|