Struct cursive::views::TextArea [] [src]

pub struct TextArea {
    // some fields omitted
}

Multi-lines text editor.

A TextArea by itself doesn't have a well-defined size. You should wrap it in a BoxView to control its size.

Methods

impl TextArea
[src]

Creates a new, empty TextArea.

Retrieves the content of the view.

Sets the content of the view.

Sets the content of the view.

Chainable variant.

Trait Implementations

impl Default for TextArea
[src]

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

impl View for TextArea
[src]

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

Called when a key was pressed. Default implementation just ignores it.

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

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

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

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

Finds the view pointed to by the given path. Read more