Add HideableView::is_visible

This commit is contained in:
Alexandre Bury 2018-12-20 13:39:49 -08:00
parent 514751ff8a
commit 2ab81ae6c9

View File

@ -53,6 +53,11 @@ impl<V> HideableView<V> {
self.with(Self::hide) 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) { fn invalidate(&mut self) {
self.invalidated = true; self.invalidated = true;
} }