Debian Codegraph @

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

raw
1 setRenderHint Antialiasing false
2
3 # offscreen
4 translate 0 -200
5
6 begin_block rects
7 # int API
8 fillRect 10 10 20 20 green
9 fillRect 40 10 20 20
10 drawRect 70 10 20 20
11
12 # float API, int values
13 fillRectF 10.0 40.0 20.0 20.0 green
14 fillRectF 40.0 40.0 20.0 20.0
15 drawRect 70.0 40.0 20.0 20.0
16
17 # float API, float values
18 fillRectF 10.0 70.0 20.5 20.5 green
19 fillRectF 40.0 70.0 20.5 20.5
20 drawRect 70.0 70.0 20.5 20.5
21
22 # alignment, int api, color
23 fillRect 10 100 10 10 green
24 fillRect 20 100 10 10 green
25 fillRect 10 110 10 10 green
26 fillRect 20 110 10 10 green
27
28 # alignment, int api, brush
29 fillRect 40 100 10 10
30 fillRect 50 100 10 10
31 fillRect 40 110 10 10
32 fillRect 50 110 10 10
33
34 # alignment comparison
35 drawRect 70 100 10 10
36 drawRect 80 100 10 10
37 drawRect 70 110 10 10
38 drawRect 80 110 10 10
39
40 # alignment, float api, color
41 fillRectF 10.0 130.0 10.0 10.0 green
42 fillRectF 20.0 130.0 10.0 10.0 green
43 fillRectF 10.0 140.0 10.0 10.0 green
44 fillRectF 20.0 140.0 10.0 10.0 green
45
46 # alignment, float api, brush
47 fillRectF 40.0 130.0 10.0 10.0
48 fillRectF 50.0 130.0 10.0 10.0
49 fillRectF 40.0 140.0 10.0 10.0
50 fillRectF 50.0 140.0 10.0 10.0
51
52 # alignment comparison
53 drawRect 70.0 130.0 10.0 10.0
54 drawRect 80.0 130.0 10.0 10.0
55 drawRect 70.0 140.0 10.0 10.0
56 drawRect 80.0 140.0 10.0 10.0
57
58 end_block
59
60 begin_block row
61
62 repeat_block rects
63
64 save
65 translate 100.2 0.2
66 repeat_block rects
67 restore
68
69 save
70 translate 200.5 0.5
71 repeat_block rects
72 restore
73
74 save
75 translate 300.7 0.7
76 repeat_block rects
77 restore
78
79 end_block
80
81 # end of block defs
82
83 resetMatrix
84
85 setPen NoPen
86 setBrush green
87 repeat_block row
88
89 save
90 translate 500 50
91 scale 0.42 0.42
92 repeat_block row
93 restore
94
95 save
96 translate 0 160
97 scale 1.8 0.8
98 repeat_block row
99 restore
100
101 save
102 translate 650 320
103 rotate 80
104 repeat_block row
105 restore
106
107 save
108 setBrush green Dense2Pattern
109 translate 0 400
110 repeat_block row
111 restore
112
113 save
114 gradient_clearStops
115 gradient_appendStop 0 green
116 gradient_appendStop 1 blue
117 gradient_setCoordinateMode ObjectBoundingMode
118 gradient_setLinear 0.0 0.0 1.0 1.0
119 translate 0 600
120 repeat_block row
121 restore