[−][src]Function cursive::view::scroll::draw_frame
pub fn draw_frame<T, LeftBorder, TopBorder, RightBorder, BottomBorder>(
scroller: &T,
printer: &Printer,
left_border: LeftBorder,
top_border: TopBorder,
right_border: RightBorder,
bottom_border: BottomBorder
) where
T: Scroller,
LeftBorder: FnMut(&T, &Printer, usize),
TopBorder: FnMut(&T, &Printer, usize),
RightBorder: FnMut(&T, &Printer, usize),
BottomBorder: FnMut(&T, &Printer, usize),
Draws a frame around the scrollable content.
left_border
will be called for each row to draw the left border for the given line number.