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.

Important traits for Vec<u8>
[src]

Returns the size for each layer in this view.

[src]

Moves a layer to a new position in the stack.

This only affects the elevation of a layer (whether it is drawn over or under other views).

[src]

Brings the given view to the front of the stack.

[src]

Pushes the given view to the back of the stack.

[src]

Moves a layer to a new position on the screen.

Has no effect on fullscreen layers Has no effect if layer is not found

[src]

Background drawing Drawing functions are split into forground and background to ease inserting layers under the stackview but above it's background you probably just want to call draw()

[src]

Forground drawing Drawing functions are split into forground and background to ease inserting layers under the stackview but above it's background you probably just want to call draw()

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

Auto Trait Implementations

impl !Send for StackView

impl !Sync for StackView