[−][src]Trait prototty::View
Defines a method for rendering a T
to the terminal.
Required methods
fn view<G>(&mut self, data: &T, offset: Coord, depth: i32, grid: &mut G) where
G: ViewGrid,
G: ViewGrid,
Update the cells in grid
to describe how a type should be rendered.
This mutably borrows self
to allow the view to contain buffers/caches which
are updated during rendering.
Implementors
impl View<Pager> for PagerView
[src]
fn view<G>(&mut self, pager: &Pager, offset: Coord, depth: i32, grid: &mut G) where
G: ViewGrid,
[src]
G: ViewGrid,
impl View<RichText> for DefaultRichTextView
[src]
fn view<G>(&mut self, data: &RichText, offset: Coord, depth: i32, grid: &mut G) where
G: ViewGrid,
[src]
G: ViewGrid,
impl<'a, V> View<(&'a Pager, &'a PagerScrollbar)> for PagerViewWithScrollbar<V> where
V: View<Pager>,
[src]
V: View<Pager>,
fn view<G>(
&mut self,
data: &(&'a Pager, &'a PagerScrollbar),
offset: Coord,
depth: i32,
grid: &mut G
) where
G: ViewGrid,
[src]
&mut self,
data: &(&'a Pager, &'a PagerScrollbar),
offset: Coord,
depth: i32,
grid: &mut G
) where
G: ViewGrid,
impl<T> View<(TextInfo, T)> for TextInfoStringView where
T: AsRef<str> + ?Sized,
[src]
T: AsRef<str> + ?Sized,
fn view<G>(
&mut self,
value: &(TextInfo, T),
offset: Coord,
depth: i32,
grid: &mut G
) where
G: ViewGrid,
[src]
&mut self,
value: &(TextInfo, T),
offset: Coord,
depth: i32,
grid: &mut G
) where
G: ViewGrid,
impl<T> View<MenuInstance<T>> for DefaultMenuInstanceView where
T: Copy,
[src]
T: Copy,
fn view<G>(
&mut self,
value: &MenuInstance<T>,
offset: Coord,
depth: i32,
grid: &mut G
) where
G: ViewGrid,
[src]
&mut self,
value: &MenuInstance<T>,
offset: Coord,
depth: i32,
grid: &mut G
) where
G: ViewGrid,
impl<T> View<T> for RichStringView where
T: AsRef<str> + ?Sized,
[src]
T: AsRef<str> + ?Sized,
impl<T> View<T> for StringView where
T: AsRef<str> + ?Sized,
[src]
T: AsRef<str> + ?Sized,
impl<T, V> View<T> for Decorated<V, Align> where
V: View<T> + ViewSize<T>,
[src]
V: View<T> + ViewSize<T>,
impl<T, V> View<T> for Decorated<V, Border> where
T: ?Sized,
V: View<T> + ViewSize<T>,
[src]
T: ?Sized,
V: View<T> + ViewSize<T>,