Struct prototty_elements::text::Text [] [src]

pub struct Text {
    pub string: String,
    pub size: Vector2<u16>,
}

A plain text element. Text wraps naively. Text that doesn't fit in size is truncated.

Fields

Methods

impl Text
[src]

[src]

Create a new Text element.

[src]

Create a new Text element of an appropriate size for a single line.

Trait Implementations

impl Debug for Text
[src]

[src]

Formats the value using the given formatter.

impl Clone for Text
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl View for Text
[src]

[src]

Update the cells in grid to describe how a type should be rendered. Implementations of view for low level ui components will typically involve updating cells directly. Implementations for higer level components, such as an entire application's ui, will typically call the view methed of lower level components which make up the ui. Read more

impl ViewSize for Text
[src]

[src]

Returns the size in cells of the rectangle containing a ui element. This allows for the implementation of decorator ui components that render a border around some inner element. Read more