Struct tui::widgets::List
[−]
[src]
pub struct List<'a, T> where T: AsRef<str> + 'a { /* fields omitted */ }
Methods
impl<'a, T> List<'a, T> where T: AsRef<str> + 'a
[src]
fn block(&'a mut self, block: Block<'a>) -> &mut List<'a, T>
fn items(&'a mut self, items: &'a [(T, &'a Style)]) -> &mut List<'a, T>
fn style(&'a mut self, style: Style) -> &mut List<'a, T>
Trait Implementations
impl<'a, T> Default for List<'a, T> where T: AsRef<str> + 'a
[src]
impl<'a, T> Widget for List<'a, T> where T: AsRef<str> + 'a
[src]
fn draw(&self, area: &Rect, buf: &mut Buffer)
Draws the current state of the widget in the given buffer. That the only method required to implement a custom widget. Read more
fn background(&self, area: &Rect, buf: &mut Buffer, color: Color)
Helper method to quickly set the background of all cells inside the specified area.
fn render<B>(&self, t: &mut Terminal<B>, area: &Rect) where Self: Sized, B: Backend
Helper method that can be chained with a widget's builder methods to render it.