Struct cursive::views::MenuPopup [] [src]

pub struct MenuPopup { /* fields omitted */ }

Popup that shows a list of items.

Methods

impl MenuPopup
[src]

[src]

Creates a new MenuPopup using the given menu tree.

[src]

Sets the currently focused element.

[src]

Sets the currently focused element.

Chainable variant.

[src]

Sets the alignment for this view.

Chainable variant.

[src]

Sets the alignment for this view.

[src]

Sets a callback to be used when this view is actively dismissed.

(When the user hits )

Chainable variant.

[src]

Sets a callback to be used when this view is actively dismissed.

(When the user hits )

[src]

Sets a callback to be used when a leaf is activated.

Will also be called if a leaf from a subtree is activated.

Usually used to hide the parent view.

Chainable variant.

[src]

Sets a callback to be used when a leaf is activated.

Will also be called if a leaf from a subtree is activated.

Usually used to hide the parent view.

Trait Implementations

impl View for MenuPopup
[src]

[src]

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

[src]

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

[src]

Called when a key was pressed. Read more

[src]

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

[src]

Returns true if the view content changed since last layout phase. 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]

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

Auto Trait Implementations

impl !Send for MenuPopup

impl !Sync for MenuPopup