summaryrefslogtreecommitdiffstats
path: root/examples/custom_widget
diff options
context:
space:
mode:
authorLibravatar JL710 <76447362+JL710@users.noreply.github.com>2024-08-14 08:40:22 +0200
committerLibravatar GitHub <noreply@github.com>2024-08-14 08:40:22 +0200
commitd6ae1fca678060991d1d32ec69beb85616f8312b (patch)
tree7dfa94e246c2954e55ba0dd3bb92942f1aeafe4c /examples/custom_widget
parent8b45d620d048c33febbead4480d9ef62f196c9e1 (diff)
downloadiced-d6ae1fca678060991d1d32ec69beb85616f8312b.tar.gz
iced-d6ae1fca678060991d1d32ec69beb85616f8312b.tar.bz2
iced-d6ae1fca678060991d1d32ec69beb85616f8312b.zip
Remove out of date comment from custom-widget example
Diffstat (limited to 'examples/custom_widget')
-rw-r--r--examples/custom_widget/src/main.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/custom_widget/src/main.rs b/examples/custom_widget/src/main.rs
index dc3f74ac..58f3c54a 100644
--- a/examples/custom_widget/src/main.rs
+++ b/examples/custom_widget/src/main.rs
@@ -1,14 +1,5 @@
//! This example showcases a simple native custom widget that draws a circle.
mod circle {
- // For now, to implement a custom native widget you will need to add
- // `iced_native` and `iced_wgpu` to your dependencies.
- //
- // Then, you simply need to define your widget type and implement the
- // `iced_native::Widget` trait with the `iced_wgpu::Renderer`.
- //
- // Of course, you can choose to make the implementation renderer-agnostic,
- // if you wish to, by creating your own `Renderer` trait, which could be
- // implemented by `iced_wgpu` and other renderers.
use iced::advanced::layout::{self, Layout};
use iced::advanced::renderer;
use iced::advanced::widget::{self, Widget};