summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/rasterops.qps
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-04-17 14:06:06 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-04-17 14:06:06 (GMT)
commitf15b8a83e2e51955776a3f07cb85ebfc342dd8ef (patch)
treec5dc684986051654898db11ce73e03b9fec8db99 /tests/arthur/data/qps/rasterops.qps
downloadQt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.zip
Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.tar.gz
Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.tar.bz2
Initial import of statemachine branch from the old kinetic repository
Diffstat (limited to 'tests/arthur/data/qps/rasterops.qps')
-rw-r--r--tests/arthur/data/qps/rasterops.qps83
1 files changed, 83 insertions, 0 deletions
diff --git a/tests/arthur/data/qps/rasterops.qps b/tests/arthur/data/qps/rasterops.qps
new file mode 100644
index 0000000..b79ec0d
--- /dev/null
+++ b/tests/arthur/data/qps/rasterops.qps
@@ -0,0 +1,83 @@
+setPen NoPen
+
+setBrush black
+drawRect 10 10 1200 140
+
+setCompositionMode SourceOrDestination
+translate 20 20
+begin_block drawShape
+setBrush 0xffff0000
+drawEllipse 10 10 80 80
+setBrush 0xff00ff00
+drawRect 0 0 50 50
+setBrush 0xff0000ff
+drawRect 50 50 50 50
+end_block
+
+begin_block loop
+setCompositionMode SourceAndDestination
+translate 120 0
+repeat_block drawShape
+
+setCompositionMode SourceXorDestination
+translate 120 0
+repeat_block drawShape
+
+setCompositionMode NotSourceAndNotDestination
+translate 120 0
+repeat_block drawShape
+
+setCompositionMode NotSourceOrNotDestination
+translate 120 0
+repeat_block drawShape
+
+setCompositionMode NotSourceXorDestination
+translate 120 0
+repeat_block drawShape
+
+setCompositionMode NotSource
+translate 120 0
+repeat_block drawShape
+
+setCompositionMode NotSourceAndDestination
+translate 120 0
+repeat_block drawShape
+
+setCompositionMode SourceAndNotDestination
+translate 120 0
+repeat_block drawShape
+end_block
+
+resetMatrix
+setCompositionMode Source
+setBrush white
+drawRect 10 160 1200 140
+translate 20 170
+repeat_block loop
+
+resetMatrix
+setCompositionMode Source
+translate 20 320
+repeat_block loop
+
+resetMatrix
+setPen black
+setCompositionMode SourceOver
+translate 20 470
+drawText 20 0 "Or ROP"
+translate 120 0
+drawText 20 0 "And ROP"
+translate 120 0
+drawText 20 0 "Xor ROP"
+translate 120 0
+drawText 20 0 "Nor ROP"
+translate 120 0
+drawText 20 0 "Nand ROP"
+translate 120 0
+drawText 0 0 "NSrcXorDst ROP"
+translate 120 0
+drawText 20 0 "NSrc ROP"
+translate 120 0
+drawText 0 0 "NSrcAndDst ROP"
+translate 120 0
+drawText 0 0 "SrcAndNDst ROP"