summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-02-10 21:20:26 +0100
committerLibravatar GitHub <noreply@github.com>2020-02-10 21:20:26 +0100
commit3a00f3398cf2b04fc08454b15f5b7dbc4272f259 (patch)
treeee8b5b3faccaae4027647cb12c103400d87a66b5
parent5d16f431b3088189579cf096b3abf89578cc73f6 (diff)
parent71c108e0e11e061f279aecad23b5dc794d6d8f65 (diff)
downloadiced-3a00f3398cf2b04fc08454b15f5b7dbc4272f259.tar.gz
iced-3a00f3398cf2b04fc08454b15f5b7dbc4272f259.tar.bz2
iced-3a00f3398cf2b04fc08454b15f5b7dbc4272f259.zip
Merge pull request #185 from daxpedda/pub-hash-layout
Make `Element::hash_layout` public.
Diffstat (limited to '')
-rw-r--r--native/src/element.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/native/src/element.rs b/native/src/element.rs
index ae47e893..276f7614 100644
--- a/native/src/element.rs
+++ b/native/src/element.rs
@@ -242,7 +242,10 @@ where
.draw(renderer, defaults, layout, cursor_position)
}
- pub(crate) fn hash_layout(&self, state: &mut Hasher) {
+ /// Computes the _layout_ hash of the [`Element`].
+ ///
+ /// [`Element`]: struct.Element.html
+ pub fn hash_layout(&self, state: &mut Hasher) {
self.widget.hash_layout(state);
}
}