Struct prototty_common::RichText [] [src]

pub struct RichText {
    pub parts: Vec<RichTextPart>,
    pub size: Size,
}

A text element, where the style of the text can be controlled. A single RichText element can have several different parts, each styled differently.

Fields

Methods

impl RichText
[src]

[src]

Create a new RichText element.

[src]

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

Trait Implementations

impl Debug for RichText
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for RichText
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl View<RichText> for DefaultRichTextView
[src]

[src]

Update the cells in grid to describe how a type should be rendered.

impl ViewSize<RichText> for DefaultRichTextView
[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

Auto Trait Implementations

impl Send for RichText

impl Sync for RichText