Struct prototty_common::DefaultMenuInstanceView
[−]
[src]
pub struct DefaultMenuInstanceView;
Default view of a MenuInstance
.
Trait Implementations
impl<T: Copy> View<MenuInstance<T>> for DefaultMenuInstanceView
[src]
fn view<G: ViewGrid>(
&mut self,
value: &MenuInstance<T>,
offset: Coord,
depth: i32,
grid: &mut G
)
[src]
&mut self,
value: &MenuInstance<T>,
offset: Coord,
depth: i32,
grid: &mut G
)
Update the cells in grid
to describe how a type should be rendered.
impl<T: Copy> ViewSize<MenuInstance<T>> for DefaultMenuInstanceView
[src]
fn size(&mut self, data: &MenuInstance<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