Struct cursive::prelude::TextView [] [src]

pub struct TextView {
    // some 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.

Returns the current text in this view.

Trait Implementations

impl View for TextView
[src]

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

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

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