Struct prototty_common::Decorated [] [src]

pub struct Decorated<V, D> {
    pub view: V,
    pub decorator: D,
}

Represents a particular view V, decorated by a decorator D.

Fields

Methods

impl<V, D> Decorated<V, D>
[src]

[src]

Trait Implementations

impl<T, V: View<T> + ViewSize<T>> View<T> for Decorated<V, Border>
[src]

[src]

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

impl<T, V: View<T> + ViewSize<T>> ViewSize<T> for Decorated<V, Border>
[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

impl<T, V: View<T> + ViewSize<T>> ViewSize<T> for Decorated<V, Align>
[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

impl<T, V: View<T> + ViewSize<T>> View<T> for Decorated<V, Align>
[src]

[src]

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