summaryrefslogtreecommitdiffstats
path: root/native/src/shell.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-13 19:07:54 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-13 19:07:54 +0200
commit296e157dcf2efe1ae52ae6cc35060b2f0cf212bf (patch)
treef4d3c8a5307e4171d33cfda555aff7545bc46315 /native/src/shell.rs
parent4c98de0a53b9a59a3a03cee0c5d7ce34ac434067 (diff)
downloadiced-296e157dcf2efe1ae52ae6cc35060b2f0cf212bf.tar.gz
iced-296e157dcf2efe1ae52ae6cc35060b2f0cf212bf.tar.bz2
iced-296e157dcf2efe1ae52ae6cc35060b2f0cf212bf.zip
Relayout base layer when layout is invalidated from an overlay
Diffstat (limited to 'native/src/shell.rs')
-rw-r--r--native/src/shell.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/native/src/shell.rs b/native/src/shell.rs
index 4a0aa9c6..b96d23e5 100644
--- a/native/src/shell.rs
+++ b/native/src/shell.rs
@@ -31,6 +31,11 @@ impl<'a, Message> Shell<'a, Message> {
}
}
+ /// Returns whether the current layout is invalid or not.
+ pub fn is_layout_invalid(&self) -> bool {
+ self.is_layout_invalid
+ }
+
/// Publish the given `Message` for an application to process it.
pub fn publish(&mut self, message: Message) {
self.messages.push(message);