Show container doc example in multiple places

This commit is contained in:
Héctor Ramón Jiménez 2024-09-19 03:33:09 +02:00
parent 3e6e669c4c
commit 96615d5537
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 65 additions and 11 deletions

View file

@ -1,8 +1,6 @@
//! Draw 2D graphics for your users.
//! Canvases can be leveraged to draw interactive 2D graphics.
//!
//! # Example: Drawing a Simple Circle
//! Here's how we can use a [`Canvas`] to draw a simple circle:
//!
//! ```no_run
//! # mod iced { pub mod widget { pub use iced_widget::*; } pub use iced_widget::Renderer; pub use iced_widget::core::*; }
//! # pub type State = ();
@ -91,8 +89,6 @@ pub type Frame<Renderer = crate::Renderer> = geometry::Frame<Renderer>;
/// A widget capable of drawing 2D graphics.
///
/// # Example: Drawing a Simple Circle
/// Here's how we can use a [`Canvas`] to draw a simple circle:
///
/// ```no_run
/// # mod iced { pub mod widget { pub use iced_widget::*; } pub use iced_widget::Renderer; pub use iced_widget::core::*; }
/// # pub type State = ();