Struct cursive::views::StackView [] [src]

pub struct StackView { /* fields omitted */ }

Simple stack of views. Only the top-most view is active and can receive input.

Methods

impl StackView
[src]

[src]

Creates a new empty StackView

[src]

Adds a new full-screen layer on top of the stack.

Fullscreen layers have no shadow.

[src]

Adds new view on top of the stack in the center of the screen.

[src]

Adds new view on top of the stack in the center of the screen.

Chainable variant.

[src]

Adds a new full-screen layer on top of the stack.

Chainable variant.

[src]

Adds a view on top of the stack.

[src]

Adds a view on top of the stack.

Chainable variant.

[src]

Remove the top-most layer.

[src]

Computes the offset of the current top view.

[src]

Returns the size for each layer in this view.

Trait Implementations

impl Default for StackView
[src]

[src]

Returns the "default value" for a type. Read more

impl View for StackView
[src]

[src]

Draws the view with the given printer (includes bounds) and focus.

[src]

Called when a key was pressed. Read more

[src]

Called once the size for this view has been decided, Read more

[src]

Returns the minimum size the view requires with the given restrictions. Read more

[src]

This view is offered focus. Will it take it? Read more

[src]

Runs a closure on the view identified by the given selector. Read more

[src]

Moves the focus to the view identified by the given selector. Read more

[src]

Returns true if the view content changed since last layout phase. Read more