pub struct Listbox<D: Data = isize> { /* private fields */ }
Expand description
A widget for displaying a list of selectable items.
Implementations
sourceimpl<D: Data> Listbox<D>
impl<D: Data> Listbox<D>
pub fn new(left: i32, top: i32, height: i32, flags: i32) -> Listbox<D>
pub fn set_width(&self, width: i32)
pub fn item_count(&self) -> i32
pub fn append_entry(&self, text: &str, data: D) -> Result<(), ()>
pub fn insert_entry(&self, text: &str, data: D, key: D) -> Result<(), ()>
pub fn get_current(&self) -> Option<D>
pub fn set_current(&self, num: i32)
pub fn set_current_by_key(&self, key: D)
pub fn get_entry(&self, num: i32) -> (&str, D)
pub fn set_entry(&self, num: i32, text: &str)
pub fn set_data(&self, num: i32, data: D)
pub fn delete_entry(&self, data: D) -> i32
pub fn clear(&self)
pub fn get_selection(&self) -> Box<[D]>
pub fn select_item(&self, key: D, sense: FlagsSense)
pub fn clear_selection(&self)
Trait Implementations
sourceimpl<D: Data> Component for Listbox<D>
impl<D: Data> Component for Listbox<D>
sourcefn co(&self) -> newtComponent
fn co(&self) -> newtComponent
Return newtComponent
pointer.
sourceimpl<D: Data> PartialEq<ExitReason> for Listbox<D>
impl<D: Data> PartialEq<ExitReason> for Listbox<D>
Auto Trait Implementations
impl<D = isize> !RefUnwindSafe for Listbox<D>
impl<D = isize> !Send for Listbox<D>
impl<D = isize> !Sync for Listbox<D>
impl<D> Unpin for Listbox<D> where
D: Unpin,
impl<D> UnwindSafe for Listbox<D> where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more