Struct GridCell
pub(super) struct GridCell {
pub pid: u32,
pub row: i32,
pub col: i32,
pub col_span: i32,
pub pos_in_row: i32,
}Expand description
One client window’s position on the spatial grid.
col is the leftmost upper-grid column the cell projects onto and
col_span is how many upper-grid columns it spans. Rows 0..rows-2
are dense (col_span == 1); cells in a partial last row are stretched
(col_span >= 1).
Fields§
§pid: u32Process id of the client owning this cell.
row: i320-based row index.
col: i32Leftmost upper-grid column the cell projects onto.
col_span: i32Number of upper-grid columns the cell projects onto. Always
>= 1; only > 1 for partial-last-row cells.
pos_in_row: i320-based position within the row, used for vertical roundtrips.
Trait Implementations§
impl Copy for GridCell
impl Eq for GridCell
impl StructuralPartialEq for GridCell
Auto Trait Implementations§
impl Freeze for GridCell
impl RefUnwindSafe for GridCell
impl Send for GridCell
impl Sync for GridCell
impl Unpin for GridCell
impl UnsafeUnpin for GridCell
impl UnwindSafe for GridCell
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