pub struct MultiSelectResult { /* private fields */ }Expand description
An owned copy of the IO produced by BeginMultiSelect() or EndMultiSelect().
The native IO is temporary and may be overwritten by the next multi-select scope. This value contains no native pointers, so it can be stored and applied later.
Implementations§
Source§impl MultiSelectResult
impl MultiSelectResult
Sourcepub fn requests(&self) -> &[MultiSelectRequest]
pub fn requests(&self) -> &[MultiSelectRequest]
Selection changes requested by Dear ImGui.
Sourcepub fn range_source_item(&self) -> Option<MultiSelectUserData>
pub fn range_source_item(&self) -> Option<MultiSelectUserData>
Source item used for range selection, when one is active.
Item associated with Dear ImGui’s navigation ID, when known.
Whether the navigation item was selected when this result was captured.
Sourcepub fn range_source_reset(&self) -> bool
pub fn range_source_reset(&self) -> bool
Whether the range source was reset before the scope ended.
Sourcepub fn items_count(&self) -> usize
pub fn items_count(&self) -> usize
Item count supplied when the multi-select scope began.
Sourcepub fn apply_requests_indexed<S: MultiSelectIndexStorage>(
&self,
storage: &mut S,
)
pub fn apply_requests_indexed<S: MultiSelectIndexStorage>( &self, storage: &mut S, )
Apply these requests to index-addressable selection storage.
Sourcepub fn apply_requests_basic<G>(
&self,
selection: &mut BasicSelection,
id_at_index: G,
)
pub fn apply_requests_basic<G>( &self, selection: &mut BasicSelection, id_at_index: G, )
Apply these requests to a BasicSelection using an index-to-ID mapping.
Trait Implementations§
Source§impl Clone for MultiSelectResult
impl Clone for MultiSelectResult
Source§fn clone(&self) -> MultiSelectResult
fn clone(&self) -> MultiSelectResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultiSelectResult
impl Debug for MultiSelectResult
impl Eq for MultiSelectResult
Source§impl PartialEq for MultiSelectResult
impl PartialEq for MultiSelectResult
impl StructuralPartialEq for MultiSelectResult
Auto Trait Implementations§
impl Freeze for MultiSelectResult
impl RefUnwindSafe for MultiSelectResult
impl Send for MultiSelectResult
impl Sync for MultiSelectResult
impl Unpin for MultiSelectResult
impl UnsafeUnpin for MultiSelectResult
impl UnwindSafe for MultiSelectResult
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