pub struct TableColumnSortSpecs<'a>(/* private fields */);
Implementations§
Source§impl<'a> TableColumnSortSpecs<'a>
impl<'a> TableColumnSortSpecs<'a>
Sourcepub fn column_user_id(&self) -> ImGuiID
pub fn column_user_id(&self) -> ImGuiID
User id of the column (if specified by a TableSetupColumn() call)
Sourcepub fn column_idx(&self) -> usize
pub fn column_idx(&self) -> usize
Index of the column
Sourcepub fn sort_order(&self) -> usize
pub fn sort_order(&self) -> usize
Index within parent Specs slice where this was found – always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here.
Generally, you don’t need to access this, as it’s the same as calling specs.iter().enumerate()
.
Sourcepub fn sort_direction(&self) -> Option<TableSortDirection>
pub fn sort_direction(&self) -> Option<TableSortDirection>
Gets the sort direction for the given column. This will nearly always be Some
if you
can access it.
Auto Trait Implementations§
impl<'a> Freeze for TableColumnSortSpecs<'a>
impl<'a> RefUnwindSafe for TableColumnSortSpecs<'a>
impl<'a> Send for TableColumnSortSpecs<'a>
impl<'a> Sync for TableColumnSortSpecs<'a>
impl<'a> Unpin for TableColumnSortSpecs<'a>
impl<'a> UnwindSafe for TableColumnSortSpecs<'a>
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