GGTransitions struct
#include <GGUI/Public/UIStyle.h>
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
propertiestakingseconds, eased byease.