pub struct BasicSelection { /* private fields */ }Expand description
Selection container backed by Dear ImGui’s ImGuiSelectionBasicStorage.
This stores a set of selected ImGuiID values using the optimized helper
provided by Dear ImGui. It is suitable when items are naturally identified
by stable IDs (e.g. table rows, tree nodes).
Implementations§
Source§impl BasicSelection
impl BasicSelection
Sourcepub fn set_selected(&mut self, id: Id, selected: bool)
pub fn set_selected(&mut self, id: Id, selected: bool)
Set selection state for a given id.
Sourcepub fn iter(&self) -> BasicSelectionIter<'_> ⓘ
pub fn iter(&self) -> BasicSelectionIter<'_> ⓘ
Iterate over selected ids.
Trait Implementations§
Source§impl Debug for BasicSelection
impl Debug for BasicSelection
Source§impl Default for BasicSelection
impl Default for BasicSelection
Auto Trait Implementations§
impl Freeze for BasicSelection
impl RefUnwindSafe for BasicSelection
impl !Send for BasicSelection
impl !Sync for BasicSelection
impl Unpin for BasicSelection
impl UnwindSafe for BasicSelection
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