diff --git a/src/views/hideable_view.rs b/src/views/hideable_view.rs index f53f8ca..3e624cf 100644 --- a/src/views/hideable_view.rs +++ b/src/views/hideable_view.rs @@ -53,6 +53,11 @@ impl HideableView { self.with(Self::hide) } + /// Returns `true` if the wrapped view is going to be visible. + pub fn is_visible(&self) -> bool { + self.visible + } + fn invalidate(&mut self) { self.invalidated = true; }