diff options
author | 2022-11-10 00:10:53 +0100 | |
---|---|---|
committer | 2022-11-10 00:10:53 +0100 | |
commit | 1480ab20306e463b69b2229dcd5e81d4c66b2a64 (patch) | |
tree | fa9e1557a68e0a423d858618dd2d2e1484757027 /native/src/overlay.rs | |
parent | ff9395838b5075eb357082f7bb9a6f9a58d7864b (diff) | |
download | iced-1480ab20306e463b69b2229dcd5e81d4c66b2a64.tar.gz iced-1480ab20306e463b69b2229dcd5e81d4c66b2a64.tar.bz2 iced-1480ab20306e463b69b2229dcd5e81d4c66b2a64.zip |
Fix broken documentation links
Diffstat (limited to 'native/src/overlay.rs')
-rw-r--r-- | native/src/overlay.rs | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/native/src/overlay.rs b/native/src/overlay.rs index 905d3389..8c01581f 100644 --- a/native/src/overlay.rs +++ b/native/src/overlay.rs @@ -11,7 +11,7 @@ use crate::layout; use crate::mouse; use crate::renderer; use crate::widget; -use crate::widget::tree::{self, Tree}; +use crate::widget::Tree; use crate::{Clipboard, Layout, Point, Rectangle, Shell, Size}; /// An interactive component that can be displayed on top of other widgets. @@ -42,29 +42,7 @@ where cursor_position: Point, ); - /// Returns the [`Tag`] of the [`Widget`]. - /// - /// [`Tag`]: tree::Tag - fn tag(&self) -> tree::Tag { - tree::Tag::stateless() - } - - /// Returns the [`State`] of the [`Widget`]. - /// - /// [`State`]: tree::State - fn state(&self) -> tree::State { - tree::State::None - } - - /// Returns the state [`Tree`] of the children of the [`Widget`]. - fn children(&self) -> Vec<Tree> { - Vec::new() - } - - /// Reconciliates the [`Widget`] with the provided [`Tree`]. - fn diff(&self, _tree: &mut Tree) {} - - /// Applies an [`Operation`] to the [`Widget`]. + /// Applies a [`widget::Operation`] to the [`Overlay`]. fn operate( &self, _layout: Layout<'_>, |