GGUI::SnapshotSpace struct

Scroll offset of a scrolling box (SnapSpace), in whole pixels so pixel-snapped content stays snapped.

Public functions

auto SameScroll(const SnapshotSpace& other) const -> bool
Whether other scrolls and zooms the same, whatever its transform.
void Transform(float l[4], float t[2]) const
The transform as p' = L p + t, L = [l0 l1; l2 l3].

Public variables

float X
scrolled right, UI units on whole pixels
float Y
scrolled down, UI units on whole pixels
float Scale
float ScaleX
A group transform (SnapTransform): the box and its content drawn scaled, then skewed, then turned, about the pivot.
float ScaleY
see ScaleX
float Rotation
radians, clockwise on screen
float SkewX
radians
float SkewY
radians
float PivotX
row coordinates
float PivotY
row coordinates

Friends

auto operator==(const SnapshotSpace&, const SnapshotSpace&) -> bool defaulted
every member equal

Variable documentation

float GGUI::SnapshotSpace::Scale

an Overflow::Pan box's zoom: its content is drawn this much bigger