UIElement.onAnimate

Called periodically for every UIElement that has flagAnimated. Override this to create animations.

Using .setDirty() there allows to redraw a widget continuously (like a meter or an animated object). This is typically used to poll DSP state from the UI.

Warning: Summing dt will not lead to a time that increase like time. time may go backwards if the window was reopen after a while being closed (???) time is guaranteed to increase as fast as system time but is not synced to audio time.

Note: .onAnimate is called even if the widget is not visible! (use .isVisible() to know).

class UIElement
protected nothrow @nogc
void
onAnimate
(
double dt
,
double time
)

Meta