Debian Codegraph @

tests/auto/other/lancelot/scripts/clipping_state.qps

raw
1 # Version: 1
2 # CheckVsReference: 5%
3
4 path_addRect path1 10 10 50 50
5 path_addRect path2 30 30 50 50
6 # enable/disable a clip path
7 setPen nopen
8 setBrush red
9 setClipPath path1
10 setClipPath path2 UniteClip
11 drawRect 0 0 100 100
12 setClipping false
13 setBrush #630000ff
14 drawRect 0 0 100 100
15 setClipping true
16 setBrush #6300ff00
17 drawRect 0 0 100 100
18 # enable/disable noclip
19 translate 150 0
20 setClipPath path1 NoClip
21 setClipping false
22 setBrush #630000ff
23 drawRect 0 0 100 100
24 setClipping true
25 setBrush #6300ff00
26 drawRect 25 25 50 50
27 # enable/disable full clipping
28 translate 150 0
29 path_addRect path3 0 0 10 10
30 path_addRect path4 20 20 10 10
31 setClipPath path3
32 setClipPath path4 IntersectClip
33 setClipping false
34 setBrush #630000ff
35 drawRect 0 0 100 100
36 setClipping true
37 setBrush #6300ff00
38 drawRect 25 25 50 50
39 # disable clipping followed by setClipRect
40 translate 150 0
41 setClipRect 0 0 50 50 ReplaceClip
42 setClipping false
43 setBrush #630000ff
44 drawRect 0 0 100 100
45 setClipRect 25 25 75 75 IntersectClip
46 setBrush #6300ff00
47 drawRect 25 25 50 50