mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Add HideableView::is_visible
This commit is contained in:
parent
514751ff8a
commit
2ab81ae6c9
@ -53,6 +53,11 @@ impl<V> HideableView<V> {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user