[−][src]Struct titik::ListBox
a flex box
Implementations
impl<MSG> ListBox<MSG>
[src]
pub fn new() -> Self
[src]
create a new flexbox
pub fn set_use_divider(&mut self, use_divider: bool)
[src]
pub fn set_list(&mut self, list: Vec<String>)
[src]
set the list of this listbox;
Trait Implementations
impl<MSG: Debug> Debug for ListBox<MSG>
[src]
impl<MSG: Default> Default for ListBox<MSG>
[src]
impl<MSG> Widget<MSG> for ListBox<MSG> where
MSG: Debug + 'static,
[src]
MSG: Debug + 'static,
fn layout(&self) -> Option<&Layout>
[src]
fn set_layout(&mut self, layout: Layout)
[src]
fn style(&self) -> Style
[src]
fn draw(&self, buf: &mut Buffer) -> Vec<Cmd>
[src]
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn set_size(&mut self, width: Option<f32>, height: Option<f32>)
[src]
fn set_id(&mut self, id: &str)
[src]
fn get_id(&self) -> &Option<String>
[src]
fn get_offset(&self) -> (f32, f32)
[src]
fn add_child(&mut self, _child: Box<dyn Widget<MSG>>) -> bool
[src]
fn children(&self) -> Option<&[Box<dyn Widget<MSG>>]>
[src]
fn children_mut(&mut self) -> Option<&mut [Box<dyn Widget<MSG>>]>
[src]
fn child_mut(&mut self, _index: usize) -> Option<&mut Box<dyn Widget<MSG>>>
[src]
fn style_node(&self, stretch: &mut Stretch) -> Option<Node>
[src]
fn set_focused(&mut self, _focused: bool)
[src]
fn as_mut(&mut self) -> Option<&mut Self> where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn process_event(&mut self, _event: Event) -> Vec<MSG>
[src]
fn take_child(&mut self, _index: usize) -> Option<Box<dyn Widget<MSG>>>
[src]
Auto Trait Implementations
impl<MSG> !RefUnwindSafe for ListBox<MSG>
impl<MSG> !Send for ListBox<MSG>
impl<MSG> !Sync for ListBox<MSG>
impl<MSG> Unpin for ListBox<MSG>
impl<MSG> !UnwindSafe for ListBox<MSG>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,