GGUI::GGTransitions struct

Per-property transition durations for a rule:

styles.Rule("button", { .Fill = Grey, .Transition = Transition(StyleFill | StyleBorder, 0.08f) });
... .Transition = Transition(StyleFill, 0.08f).And(StyleShadow, 0.2f, GGEase::InOut)

The duration used is the one from the style being transitioned to. A later rule only overrides the properties it names; a duration of 0 makes a property change instantly again.

Public functions

auto And(uint8_t properties, float seconds, GGEase ease = GGEase::Out) const -> GGTransitions constexpr
These, with properties taking seconds, eased by ease.

Public variables

float Seconds
by property bit; negative = not set
GGEase Ease
by property bit