Struct prototty_common::Decorated [] [src]

pub struct Decorated<'a, 'b, V: 'a, D: 'b> {
    pub view: &'a V,
    pub decorator: &'b D,
}

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

Fields

Methods

impl<'a, 'b, V, D> Decorated<'a, 'b, V, D>
[src]

[src]

Trait Implementations

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

[src]

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

impl<'a, 'b, T, V: View<T> + ViewSize<T>> ViewSize<T> for Decorated<'a, 'b, 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