Struct cursive::views::HideableView

source ·
pub struct HideableView<V> { /* private fields */ }
Expand description

Wrapper around another view that can be hidden at will.

By default, it simply forwards all calls to the inner view.

When hidden (with HideableView::hide()), it will appear as a zero-sized invisible view, will not take focus and will not accept input.

It can be made visible again with HideableView::unhide().

Implementations

Creates a new HideableView around view.

It will be visible by default.

Sets the visibility for this view.

Sets the visibility for this view to false.

Sets the visibility for this view to true.

Sets the visibility for this view to false.

Chainable variant.

Gets access to the inner view.

Gets mutable access to the inner view.

Trait Implementations

Type 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.
Attempts to retrieve the inner view.
Wraps the layout method.
Wraps the needs_relayout method.
Wraps the draw method.
Wraps the required_size method.
Wraps the on_event method.
Wraps the take_focus method.
Wraps the focus_view method.
Wraps the important_area method.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.