pub struct TabDrag {
pub from_slot: usize,
pub slots: Vec<usize>,
pub centers: Vec<f32>,
pub order: Vec<usize>,
pub rtl: bool,
}Expand description
VAPP-279: a strip tab’s reorder drag, from its start.
Fields§
§from_slot: usizeThe dragged tab’s slot among the visible ones.
slots: Vec<usize>The tabs array index of each visible slot, in strip order.
centers: Vec<f32>Each visible item’s centre x at the start (screen px).
order: Vec<usize>The strip order (array indexes, hidden ones too) at the start.
rtl: boolTrait Implementations§
impl StructuralPartialEq for TabDrag
Auto Trait Implementations§
impl Forget for TabDrag
impl Freeze for TabDrag
impl RefUnwindSafe for TabDrag
impl Send for TabDrag
impl Sync for TabDrag
impl Unpin for TabDrag
impl UnsafeUnpin for TabDrag
impl UnwindSafe for TabDrag
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