Struct tui::widgets::List [−][src]
Methods
impl<'b, L> List<'b, L> where
L: Iterator<Item = Text<'b>>,
[src]
impl<'b, L> List<'b, L> where
L: Iterator<Item = Text<'b>>,
pub fn new(items: L) -> List<'b, L>
[src]
pub fn new(items: L) -> List<'b, L>
pub fn block(self, block: Block<'b>) -> List<'b, L>
[src]
pub fn block(self, block: Block<'b>) -> List<'b, L>
pub fn items<I>(self, items: I) -> List<'b, L> where
I: IntoIterator<Item = Text<'b>, IntoIter = L>,
[src]
pub fn items<I>(self, items: I) -> List<'b, L> where
I: IntoIterator<Item = Text<'b>, IntoIter = L>,
pub fn style(self, style: Style) -> List<'b, L>
[src]
pub fn style(self, style: Style) -> List<'b, L>
pub fn start_corner(self, corner: Corner) -> List<'b, L>
[src]
pub fn start_corner(self, corner: Corner) -> List<'b, L>
Trait Implementations
impl<'b, L> Default for List<'b, L> where
L: Iterator<Item = Text<'b>> + Default,
[src]
impl<'b, L> Default for List<'b, L> where
L: Iterator<Item = Text<'b>> + Default,
impl<'b, L> Widget for List<'b, L> where
L: Iterator<Item = Text<'b>>,
[src]
impl<'b, L> Widget for List<'b, L> where
L: Iterator<Item = Text<'b>>,
fn draw(&mut self, area: Rect, buf: &mut Buffer)
[src]
fn draw(&mut 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)
[src]
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>(&mut self, f: &mut Frame<B>, area: Rect) where
Self: Sized,
B: Backend,
[src]
fn render<B>(&mut self, f: &mut Frame<B>, area: Rect) where
Self: Sized,
B: Backend,
Helper method that can be chained with a widget's builder methods to render it.