42 void Record(
const BOX2I& aBox, std::optional<double> aMarginScale,
double aScale,
const VECTOR2D& aCenter )
What the last zoom to fit showed, so a canvas that changes size can fit it again.
bool Holds(double aScale, const VECTOR2D &aCenter) const
True while a view at aScale and aCenter shows exactly what the last fit left.
const BOX2I & GetBox() const
std::optional< double > GetMarginScale() const
std::optional< double > m_marginScale
void Record(const BOX2I &aBox, std::optional< double > aMarginScale, double aScale, const VECTOR2D &aCenter)
Note a fit of aBox that left the view at aScale and aCenter.
The Cairo implementation of the graphics abstraction layer.
VECTOR2< double > VECTOR2D