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
view: V
decorator: D
Methods
impl<V, D> Decorated<V, D>
[src]
Trait Implementations
impl<T, V: View<T> + ViewSize<T>> View<T> for Decorated<V, Border>
[src]
fn view<G: ViewGrid>(
&mut self,
data: &T,
offset: Coord,
depth: i32,
grid: &mut G
)
[src]
&mut self,
data: &T,
offset: Coord,
depth: i32,
grid: &mut G
)
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]
fn size(&mut self, data: &T) -> Size
[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]
fn size(&mut self, data: &T) -> Size
[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