void endClipping() { assert (!stack.empty()); stack.pop_back(); updateEffectiveRect(); }
void beginClipping(double x, double y, double width, double height) { ClipRect rect = { x, y, width, height }; stack.push_back(rect); updateEffectiveRect(); }
void beginClipping(int x, int y, unsigned width, unsigned height) { ClipRect rect = { x, y, width, height }; clipRectStack.push_back(rect); updateEffectiveRect(); }
void endClipping() { clipRectStack.pop_back(); updateEffectiveRect(); }
void beginClipping(int x, int y, int width, int height) { ClipRect rect = { x, y, width, height }; stack.push_back(rect); updateEffectiveRect(); }