pub struct ListBox { /* private fields */ }Available on Windows only.
Implementations§
Source§impl ListBox
impl ListBox
pub fn new(parent: impl AsContainer) -> Result<Self>
pub fn is_visible(&self) -> Result<bool>
pub fn set_visible(&mut self, v: bool) -> Result<()>
pub fn is_enabled(&self) -> Result<bool>
pub fn set_enabled(&mut self, v: bool) -> Result<()>
pub fn preferred_size(&self) -> Result<Size>
pub fn min_size(&self) -> Result<Size>
pub fn loc(&self) -> Result<Point>
pub fn set_loc(&mut self, p: Point) -> Result<()>
pub fn size(&self) -> Result<Size>
pub fn set_size(&mut self, v: Size) -> Result<()>
pub fn tooltip(&self) -> Result<String>
pub fn set_tooltip(&mut self, s: impl AsRef<str>) -> Result<()>
pub fn is_multiple(&self) -> Result<bool>
pub fn set_multiple(&mut self, v: bool) -> Result<()>
pub fn is_selected(&self, i: usize) -> Result<bool>
pub fn set_selected(&mut self, i: usize, v: bool) -> Result<()>
pub async fn wait_select(&self)
pub fn insert(&mut self, i: usize, s: impl AsRef<str>) -> Result<()>
pub fn remove(&mut self, i: usize) -> Result<()>
pub fn get(&self, i: usize) -> Result<String>
pub fn set(&mut self, i: usize, s: impl AsRef<str>) -> Result<()>
pub fn len(&self) -> Result<usize>
pub fn is_empty(&self) -> Result<bool>
pub fn clear(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ListBox
impl !UnwindSafe for ListBox
impl Freeze for ListBox
impl Send for ListBox
impl Sync for ListBox
impl Unpin for ListBox
impl UnsafeUnpin for ListBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more