Skip to content

Commit

Permalink
Merge pull request #2549 from JL710/patch-3
Browse files Browse the repository at this point in the history
Remove out of date comment from custom-widget example
  • Loading branch information
hecrj authored Sep 7, 2024
2 parents 9426418 + d6ae1fc commit b3b76ed
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions examples/custom_widget/src/main.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down

0 comments on commit b3b76ed

Please sign in to comment.