summaryrefslogtreecommitdiffstats
path: root/native/src/widget.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-03-07 15:29:43 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-03-07 15:29:43 +0700
commitc35496d80fc542c9beeea39dec98eb5cdef07aaa (patch)
tree62f28fabf631f33a1a94fb25fa076b44140adbe4 /native/src/widget.rs
parent820d332736205c7485d08352841b705205130f38 (diff)
parentaf7cbf0003496d757696ea6e15ea32f0649cf8f9 (diff)
downloadiced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.tar.gz
iced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.tar.bz2
iced-c35496d80fc542c9beeea39dec98eb5cdef07aaa.zip
Merge branch 'master' into virtual-widgets
Diffstat (limited to 'native/src/widget.rs')
-rw-r--r--native/src/widget.rs15
1 files changed, 1 insertions, 14 deletions
diff --git a/native/src/widget.rs b/native/src/widget.rs
index acd2e580..aacdc3d9 100644
--- a/native/src/widget.rs
+++ b/native/src/widget.rs
@@ -75,7 +75,7 @@ use crate::layout;
use crate::mouse;
use crate::overlay;
use crate::renderer;
-use crate::{Clipboard, Hasher, Layout, Length, Point, Rectangle, Shell};
+use crate::{Clipboard, Layout, Length, Point, Rectangle, Shell};
/// A component that displays information and allows interaction.
///
@@ -131,19 +131,6 @@ where
viewport: &Rectangle,
);
- /// Computes the _layout_ hash of the [`Widget`].
- ///
- /// The produced hash is used by the runtime to decide if the [`Layout`]
- /// needs to be recomputed between frames. Therefore, to ensure maximum
- /// efficiency, the hash should only be affected by the properties of the
- /// [`Widget`] that can affect layouting.
- ///
- /// For example, the [`Text`] widget does not hash its color property, as
- /// its value cannot affect the overall [`Layout`] of the user interface.
- ///
- /// [`Text`]: crate::widget::Text
- fn hash_layout(&self, state: &mut Hasher);
-
/// Processes a runtime [`Event`].
///
/// It receives: