Struct arcdps_imgui::ListBox
source · pub struct ListBox<T> { /* private fields */ }
Expand description
Builder for a list box widget
Implementations§
source§impl<T: AsRef<str>> ListBox<T>
impl<T: AsRef<str>> ListBox<T>
sourcepub fn size(self, size: [f32; 2]) -> Self
pub fn size(self, size: [f32; 2]) -> Self
Sets the list box size based on the given width and height If width or height are 0 or smaller, a default value is calculated Helper to calculate the size of a listbox and display a label on the right. Tip: To have a list filling the entire window width, PushItemWidth(-1) and pass an non-visible label e.g. “##empty”
Default: [0.0, 0.0], in which case the combobox calculates a sensible width and height
sourcepub fn begin<'ui>(self, ui: &Ui<'ui>) -> Option<ListBoxToken<'ui>>
pub fn begin<'ui>(self, ui: &Ui<'ui>) -> Option<ListBoxToken<'ui>>
Creates a list box and starts appending to it.
Returns Some(ListBoxToken)
if the list box is open. After content has been
rendered, the token must be ended by calling .end()
.
Returns None
if the list box is not open and no content should be rendered.
Trait Implementations§
impl<T: Copy> Copy for ListBox<T>
Auto Trait Implementations§
impl<T> Freeze for ListBox<T>where
T: Freeze,
impl<T> RefUnwindSafe for ListBox<T>where
T: RefUnwindSafe,
impl<T> Send for ListBox<T>where
T: Send,
impl<T> Sync for ListBox<T>where
T: Sync,
impl<T> Unpin for ListBox<T>where
T: Unpin,
impl<T> UnwindSafe for ListBox<T>where
T: UnwindSafe,
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