Struct cursive::views::HideableView[][src]

pub struct HideableView<V> { /* fields omitted */ }

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().

Methods

impl<V> HideableView<V>
[src]

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.

Important traits for &'a mut R

Gets access to the inner view.

Important traits for &'a mut R

Gets mutable access to the inner view.

Trait Implementations

impl<V: View> ViewWrapper for HideableView<V>
[src]

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 draw method.

Wraps the required_size method.

Wraps the on_event method.

Wraps the layout method.

Wraps the take_focus method.

Wraps the focus_view method.

Wraps the needs_relayout method.

Wraps the important_area method.

Auto Trait Implementations

impl<V> Send for HideableView<V> where
    V: Send

impl<V> Sync for HideableView<V> where
    V: Sync