GGUI::SwatchProps struct

ui.Swatch: a box whose colour is data rather than style (a user-picked colour, a team colour). With bGradient it runs from the colour to To.

Public variables

GGSize Width
its width
GGSize Height
its height
float Radius
corner radius, UI units
bool bGradient
a gradient from its colour to To
GGColor To
the gradient's end
float Angle
degrees clockwise from left-to-right; 90 is top to bottom
std::string_view Name
accessible name
std::string_view Class
style class, for a border