Struct cursive_core::views::ScreensView [−][src]
pub struct ScreensView<V = BoxedView> { /* fields omitted */ }
Expand description
A view that can switch between different screens.
Implementations
Creates a new ScreensView with a single screen.
Returns a reference to the currently active screen.
Returns None if there is no active screen.
Returns a mutable reference to the currently active screen.
Returns the id of the currently active screen.
Adds a new screen, and returns its ID.
Convenient method to create a new screen, and set it as active.
Sets the active screen. Panics if no such screen exist.
Draws the background.
This is mostly used internally by cursive. You probably just want
View::draw.
Trait Implementations
type V = V
type V = VType that this view wraps.
Runs a function on the inner view, returning the result. Read more
Runs a function on the inner view, returning the result. Read more
Wraps the find method.
Wraps the focus_view method.
Attempts to retrieve the inner view.
Wraps the required_size method.
Wraps the on_event method.
Wraps the layout method.
Wraps the take_focus method.
Wraps the needs_relayout method.
Wraps the important_area method.
Auto Trait Implementations
impl<V> RefUnwindSafe for ScreensView<V> where
V: RefUnwindSafe, impl<V> Send for ScreensView<V> where
V: Send, impl<V> Sync for ScreensView<V> where
V: Sync, impl<V> Unpin for ScreensView<V> where
V: Unpin, impl<V> UnwindSafe for ScreensView<V> where
V: UnwindSafe,