diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-17 13:56:41 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-17 13:56:41 -0500 |
commit | b646ed4c554e54e5354edc3dfdfc76edbb7656f0 (patch) | |
tree | 6c84014856390daf5a662b516cf91c8c1f00f1cc /tests | |
parent | b6cb4612ca9c615323c0540a3b05edc24feec642 (diff) | |
download | gtk3-tqt-engine-b646ed4c554e54e5354edc3dfdfc76edbb7656f0.tar.gz gtk3-tqt-engine-b646ed4c554e54e5354edc3dfdfc76edbb7656f0.zip |
Add intermediate surface
Enable clip regions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-painter.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-painter.cpp b/tests/test-painter.cpp index 6979af4..f458e26 100644 --- a/tests/test-painter.cpp +++ b/tests/test-painter.cpp @@ -169,6 +169,8 @@ void runTests(TQPaintDevice* pd) { // Font tests { + p.setPen(TQColor(0,128,255)); + static const char *fonts[] = { "Helvetica", "Courier", "Times", 0 }; static int sizes[] = { 10, 12, 18, 24, 36, 0 }; int f = 0; @@ -192,6 +194,19 @@ void runTests(TQPaintDevice* pd) { break; } } + + p.setPen(TQColor(255,128,0)); + p.drawText( TQRect(250, 250, 250, 250), 0, TQString("TQt3 renders via Cairo!") ); + } + + // Clipping tests + { + p.setBrush(TQBrush(TQt::green)); + p.setPen(TQPen(TQt::blue, 1)); + TQRect boundary(400, 10, 100, 100); + TQRegion rectRegion(425,35,50,50); + p.setClipRegion(rectRegion); + p.fillRect(boundary, TQBrush(TQt::green)); } //drawColorWheel(&p, 0.5); |