[−][src]Struct itui::widgets::List
Fields
events: Vec<Attribute<Event, MSG>>
events attached to this block
Methods
impl<'b, L, MSG> List<'b, L, MSG> where
L: Iterator<Item = Text<'b>>,
[src]
L: Iterator<Item = Text<'b>>,
pub fn new(items: L) -> Self
[src]
pub fn block(self, block: Block<'b, MSG>) -> Self
[src]
pub fn items<I>(self, items: I) -> Self where
I: IntoIterator<Item = Text<'b>, IntoIter = L>,
[src]
I: IntoIterator<Item = Text<'b>, IntoIter = L>,
pub fn style(self, style: Style) -> Self
[src]
pub fn start_corner(self, corner: Corner) -> Self
[src]
pub fn area(self, area: Rect) -> Self
[src]
Trait Implementations
impl<'b, L, MSG> Widget for List<'b, L, MSG> where
L: Iterator<Item = Text<'b>>,
MSG: 'static,
[src]
L: Iterator<Item = Text<'b>>,
MSG: 'static,
fn get_area(&self) -> Rect
[src]
fn draw(&mut self, buf: &mut Buffer)
[src]
fn background(&self, buf: &mut Buffer, color: Color)
[src]
Helper method to quickly set the background of all cells inside the specified area.
fn render<B>(&mut self, f: &mut Frame<B>) where
Self: Sized,
B: Backend,
[src]
Self: Sized,
B: Backend,
Helper method that can be chained with a widget's builder methods to render it.
fn top(&self) -> u16
[src]
fn bottom(&self) -> u16
[src]
fn left(&self) -> u16
[src]
fn right(&self) -> u16
[src]
impl<'b, L, MSG> Default for List<'b, L, MSG> where
L: Iterator<Item = Text<'b>> + Default,
[src]
L: Iterator<Item = Text<'b>> + Default,
Auto Trait Implementations
impl<'b, L, MSG> !Sync for List<'b, L, MSG>
impl<'b, L, MSG> !Send for List<'b, L, MSG>
impl<'b, L, MSG> Unpin for List<'b, L, MSG> where
L: Unpin,
L: Unpin,
impl<'b, L, MSG> !RefUnwindSafe for List<'b, L, MSG>
impl<'b, L, MSG> !UnwindSafe for List<'b, L, MSG>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,