|
wxMaxima
|
The narrow view surface the worksheet's layout pipeline needs. More...
#include <WorksheetSizeMath.h>
Public Member Functions | |
| virtual void | GetViewClientSize (int *width, int *height) const =0 |
| The visible client area, in device pixels. | |
| virtual int | GetViewScrollUnitY () const =0 |
| The current vertical scroll position, in scroll units (not pixels). | |
| virtual void | SetViewVirtualSize (int width, int height)=0 |
| Set the scrollable (virtual) area, in device pixels. | |
| virtual void | SetViewScrollRate (int rate)=0 |
| Set the scroll granularity (device pixels per scroll unit) on both axes. | |
| virtual void | GetViewPosition (int *x, int *y) const =0 |
| The view's position within its parent, in device pixels (wxWindow::GetPosition). | |
The narrow view surface the worksheet's layout pipeline needs.
Worksheet's AdjustSize() historically read the window (client size, scroll position) and wrote the scrollbars (virtual size, scroll rate) inline, which meant the deduplication and scroll-position-preserving logic could only ever run inside a live GUI. This abstract interface pulls those four operations out so the apply step can be driven headlessly by a mock view.
The method names deliberately differ from the wxScrolled ones they forward to, so a class can inherit both wxScrolled and this without name-collision. Kept GUI-free (plain ints, no wx types) so a mock has nothing to pull in.
|
pure virtual |
The visible client area, in device pixels.
Implemented in Worksheet.
|
pure virtual |
The view's position within its parent, in device pixels (wxWindow::GetPosition).
Implemented in Worksheet.
|
pure virtual |
The current vertical scroll position, in scroll units (not pixels).
Implemented in Worksheet.
|
pure virtual |
Set the scroll granularity (device pixels per scroll unit) on both axes.
Implemented in Worksheet.
|
pure virtual |
Set the scrollable (virtual) area, in device pixels.
Implemented in Worksheet.