pub struct MultiSelectScope<'ui> { /* private fields */ }Expand description
RAII wrapper around BeginMultiSelect() / EndMultiSelect() for advanced users.
This gives direct, but scoped, access to the underlying ImGuiMultiSelectIO
struct. It does not perform any selection updates by itself; you are expected
to call helper methods or use the raw IO to drive your own storage.
Implementations§
Source§impl<'ui> MultiSelectScope<'ui>
impl<'ui> MultiSelectScope<'ui>
Sourcepub fn begin_io(&self) -> &ImGuiMultiSelectIO
pub fn begin_io(&self) -> &ImGuiMultiSelectIO
Access the IO struct returned by BeginMultiSelect().
Sourcepub fn begin_io_mut(&mut self) -> &mut ImGuiMultiSelectIO
pub fn begin_io_mut(&mut self) -> &mut ImGuiMultiSelectIO
Mutable access to the IO struct returned by BeginMultiSelect().
Sourcepub fn apply_begin_requests_indexed<S: MultiSelectIndexStorage>(
&mut self,
storage: &mut S,
)
pub fn apply_begin_requests_indexed<S: MultiSelectIndexStorage>( &mut self, storage: &mut S, )
Apply selection requests from BeginMultiSelect() to index-based storage.
Sourcepub fn end(self) -> MultiSelectEnd<'ui>
pub fn end(self) -> MultiSelectEnd<'ui>
Finalize the multi-select scope and return an IO view for the end state.
This calls EndMultiSelect() and returns a MultiSelectEnd wrapper
that can be used to apply the final selection requests.
Auto Trait Implementations§
impl<'ui> Freeze for MultiSelectScope<'ui>
impl<'ui> !RefUnwindSafe for MultiSelectScope<'ui>
impl<'ui> !Send for MultiSelectScope<'ui>
impl<'ui> !Sync for MultiSelectScope<'ui>
impl<'ui> Unpin for MultiSelectScope<'ui>
impl<'ui> !UnwindSafe for MultiSelectScope<'ui>
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