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]

[src]

Creates a new, empty TextArea.

[src]

Retrieves the content of the view.

[src]

Sets the content of the view.

[src]

Sets the content of the view.

Chainable variant.

Trait Implementations

impl Default for TextArea
[src]

[src]

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

impl View for TextArea
[src]

[src]

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

[src]

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

[src]

Called when a key was pressed. Read more

[src]

This view is offered focus. Will it take it? 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