diff options
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); |