pub struct WorksheetView {
pub row: i32,
pub column: i32,
pub range: [i32; 4],
pub focus_row: i32,
pub focus_column: i32,
pub top_row: i32,
pub left_column: i32,
}Expand description
Represents the state of the worksheet as seen by the user. This includes details such as the currently selected cell, the visible range, and the position of the viewport.
Fields§
§row: i32The row index of the currently selected cell (the anchor of the selection).
column: i32The column index of the currently selected cell (the anchor of the selection).
range: [i32; 4]The selected range in the worksheet, specified as [start_row, start_column, end_row, end_column]. Always normalized (start <= end). This is derived state: the bounding box of the anchor and the focus, grown so it never covers a merged cell partially.
focus_row: i32The row of the focus: the moving corner of the selection, the one that
keyboard- or pointer-extending the selection displaces. It is not
necessarily a corner of range (extending over merged cells grows the
range beyond the anchor-focus bounding box).
focus_column: i32The column of the focus.
top_row: i32The row index of the topmost visible cell in the worksheet view.
left_column: i32The column index of the leftmost visible cell in the worksheet view.
Trait Implementations§
Source§impl Clone for WorksheetView
impl Clone for WorksheetView
Source§fn clone(&self) -> WorksheetView
fn clone(&self) -> WorksheetView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more