ClipRectSaver

RAII setting/restoring of a DrawBuf clip rectangle

Constructors

this
this(DrawBuf buf, Rect newClipRect, uint newAlpha, bool intersect)

apply (intersect) new clip rectangle and alpha to draw buf set intersect parameter to false, if you want to draw something outside of the widget

Destructor

~this
~this()

restore previous clip rectangle

Meta