Skip to main content

Module windows

Module windows 

Source
Expand description

Windows on open workbooks.

Every open workbook has one or more windows (View › New Window adds another on the same workbook). A window has its own selection, active sheet and per-sheet selections. The active window’s view lives in its DocState (selection, sheet_selections) and in the workbook’s active sheet (crate::model::workbook::Workbook::active_sheet), where every command reads it; each other window keeps its view in WindowState until it is activated. Swapping a view in or out never copies the workbook or makes it dirty: the active sheet is set in place through the shared Arc, and selections live outside the workbook.

Structs§

TargetGuard
What Session::leave_target restores.
WindowState
One window on an open workbook.
WindowView
The view state one window keeps while another window on its workbook is showing.

Enums§

Target
Which window a command from a script or agent acts on.

Functions§

is_window_command
Commands that take window/doc as their own parameters rather than as a target.