diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-17 18:08:53 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-17 18:08:53 -0500 |
commit | 2cec804e02eca375250dcd9689a31ab91e4505d9 (patch) | |
tree | 12496c776d90be580d1905446b747a143d88fdf8 /tests | |
parent | 4038374c679a63f95c57ef21dc11e7cd7207c2ec (diff) | |
download | gtk3-tqt-engine-2cec804e02eca375250dcd9689a31ab91e4505d9.tar.gz gtk3-tqt-engine-2cec804e02eca375250dcd9689a31ab91e4505d9.zip |
Implement framework for raster operations
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-painter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-painter.cpp b/tests/test-painter.cpp index fe1939f..45e064c 100644 --- a/tests/test-painter.cpp +++ b/tests/test-painter.cpp @@ -217,6 +217,15 @@ void runTests(TQPaintDevice* pd) { TQRegion rectRegion(425,35,50,50); p.setClipRegion(rectRegion); p.fillRect(boundary, TQBrush(TQt::green)); + p.setClipping(false); + } + + // Raster operation tests + { + p.setRasterOp(TQPainter::XorROP); + p.setBrush(TQBrush(TQt::white)); + p.setPen(TQPen()); + p.drawRect(325, 275, 50, 50); } //drawColorWheel(&p, 0.5); |