GGUI::GGSnapshot::View struct

Where rows are drawn: at M * position - (X, Y), M = [A B; C D]. The scrolls, zooms, and group transforms of every enclosing space, composed.

Public functions

auto Scale() const -> float
How much bigger it draws, on average.
void Point(float x, float y, float& outX, float& outY) const
Where the point x, y is drawn.
auto Rect(const GGRect& rect) const -> GGRect
The bounds of rect as drawn.
auto Within(const float l[4], const float t[2]) const -> View
The view of content placed in this one at p' = L p + t.

Public variables

float X
the offset taken away
float Y
the offset taken away
float A
M's top left.
float B
M's top right.
float C
M's bottom left.
float D
M's bottom right.
GGRect Window
on-screen region the content may show in