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

pub struct TextArea { /* fields omitted */ }

Multi-lines text editor.

A TextArea will attempt to grow vertically and horizontally dependent on the content. Wrap it in a BoxView to constrain 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]

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

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

Called when a key was pressed. Read more

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

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

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

Finds the view identified by the given selector. Read more

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