pub struct GridState {
pub sel: BTreeSet<u64>,
pub cur: Option<u64>,
pub sort: Option<(usize, bool)>,
pub widths: Vec<i32>,
pub striped: bool,
/* private fields */
}Expand description
the app-owned state of a grid: selection (by key), current row, sort, column widths
Fields§
§sel: BTreeSet<u64>the selected rows’ keys
cur: Option<u64>the current row (keyboard focus / last clicked)
sort: Option<(usize, bool)>the sort column and direction (true = descending); None = the app’s order
widths: Vec<i32>column widths set by the user (DIP, 0 = the column’s own)
striped: boolalternate row shading
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for GridState
impl Freeze for GridState
impl RefUnwindSafe for GridState
impl Send for GridState
impl Sync for GridState
impl Unpin for GridState
impl UnsafeUnpin for GridState
impl UnwindSafe for GridState
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