UIElement.setDirty

Mark a part of the element dirty. This part must be a subrect of its _position.

class UIElement
nothrow @nogc nothrow @nogc
void
setDirty
(
box2i rect
)

Parameters

rect box2i

Position of the dirtied rectangle, in widget coordinates. Important: you could call this from the audio thread, however it is much more efficient to mark the widget dirty with an atomic and call setDirty in animation callback.

Meta