GGUI::GGTransform struct

A group transform: an element and everything in it drawn scaled, then skewed, then turned, about a point, with nothing laid out again.

Hit testing follows it. A move is PaintInput's offset.

Public functions

auto IsIdentity() const -> bool
Whether it changes nothing.

Public variables

float ScaleX
across
float ScaleY
down
float Rotation
degrees, clockwise
float SkewX
degrees: its top leans right of its bottom
float SkewY
degrees: its right side drops below its left
float PivotX
what it turns, skews, and scales about, as fractions of its size
float PivotY
see PivotX

Friends

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