pushClip

fnvoid pushClip(int x, int y, int w, int h) nothrow @nogc

Pushes a clipping rectangle onto the stack.

All drawing will be clipped to this rectangle until popClip() is called. Clipping regions can be nested.

Parameters

xX position
yY position
wWidth
hHeight Example:
pushClip(10, 10, 100, 100);
// Drawing here is clipped to the rectangle
rectf(0, 0, 200, 200);  // Only 10,10 to 110,110 is visible
popClip();