Struct cursive::views::TextView [] [src]

pub struct TextView { /* fields omitted */ }

A simple view showing a fixed text

Methods

impl TextView
[src]

Creates a new TextView with the given content.

Enable or disable the view's scrolling capabilities.

When disabled, the view will never attempt to scroll (and will always ask for the full height).

Enable or disable the view's scrolling capabilities.

When disabled, the view will never attempt to scroll (and will always ask for the full height).

Chainable variant.

Sets the horizontal alignment for this view.

Sets the vertical alignment for this view.

Sets the alignment for this view.

Center the text horizontally and vertically inside the view.

Replace the text in this view.

Append content to the end of a TextView.

Returns the current text in this view.

Defines the way scrolling is adjusted on content or size change.

The scroll strategy defines how the scrolling position is adjusted when the size of the view or the content change.

It is reset to ScrollStrategy::KeepRow whenever the user scrolls manually.

Defines the way scrolling is adjusted on content or size change.

Chainable variant.

Trait Implementations

impl View for TextView
[src]

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

Called when a key was pressed. Read more

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

Returns the minimum size the view requires with the given restrictions. 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

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