wxMaxima
Loading...
Searching...
No Matches
Data Structures
WorksheetLayout.h File Reference

The worksheet's layout engine: scheduling, the recalculation walk and the virtual-size update, independent of the Worksheet window class. More...

#include "WorksheetSizeMath.h"
#include "cells/CellPtr.h"
#include <functional>
Include dependency graph for WorksheetLayout.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  WorksheetLayout
 The layout/recalculation engine of a worksheet. More...
 

Detailed Description

The worksheet's layout engine: scheduling, the recalculation walk and the virtual-size update, independent of the Worksheet window class.

WorksheetLayout owns the layout pipeline that used to be spread across Worksheet: RequestRecalculation() records where the next layout pass must start, RecalculateIfNeeded() performs the walk (sizing dirty cells, repositioning the rest), and AdjustSize()/GetMaxPoint() derive the scrollable size from the resulting cell positions. It touches the window only through the narrow WorksheetView interface (WorksheetSizeMath.h) and reaches the cell tree through callbacks, so the whole request -> recalculate -> resize pipeline can be driven headlessly by a mock view - see test_WorksheetLayout.