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();
 }
Example #3
0
 void beginClipping(int x, int y, unsigned width, unsigned height)
 {
     ClipRect rect = { x, y, width, height };
     clipRectStack.push_back(rect);
     updateEffectiveRect();
 }
Example #4
0
 void endClipping()
 {
     clipRectStack.pop_back();
     updateEffectiveRect();
 }
Example #5
0
 void beginClipping(int x, int y, int width, int height)
 {
     ClipRect rect = { x, y, width, height };
     stack.push_back(rect);
     updateEffectiveRect();
 }